WilliamDASILVA / nuxt-facebook-pixel-module

Inject Facebook pixel code
MIT License
89 stars 39 forks source link

feature #29

Open davi-dv opened 3 years ago

davi-dv commented 3 years ago

how can i know if it's working?

I configured it in nuxt-config.js and then called within this component life cycle this. $ Fb.enable () and after that I added the pixel id with this. $ Fb.setPixelId (this.getPreferences.facebook_pixel ), I wonder if this way already works?

MachinisteWeb commented 3 years ago

It should not be $fb and not $Fb ?

Maybe you are a typo issue.

Also, if you not use the version 1.5.0 you have probably this issue: https://github.com/WilliamDASILVA/nuxt-facebook-pixel-module/issues/26

Just use the last version. If you cannot, you will found the workarround from the previous linked issue. To test it's work, when you do `console.log($fb.enable) you should see a function code, not undefined.