Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this.fbq is not a function #37

Open
rutcreate opened this issue Apr 26, 2021 · 3 comments
Open

this.fbq is not a function #37

rutcreate opened this issue Apr 26, 2021 · 3 comments

Comments

@rutcreate
Copy link

This is my code.

mounted () {
  this.$fb.track('PageView')
}

I use Nuxt and got error this.fbq is not a function when deploy as a production. Not happen to development.

Any ideas?

@jerome-offeo
Copy link

@rutcreate did you manage to solve this? I'm currently facing the issue on production. Feels like the script didn't get loaded fast enough. 🤔

@jerome-offeo
Copy link

@rutcreate did you manage to solve this? I'm currently facing the issue on production. Feels like the script didn't get loaded fast enough.

I just discovered for my case it was due to a duplication of FB Pixels injected. 🤦

@karolkrupa
Copy link
Contributor

This #41 should resolve the problem. This module sometimes tries to track event before facebook sdk (fbq function) is loaded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants