WilliamDASILVA / nuxt-facebook-pixel-module

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

Can't use 'track' event #35

Open antoinebeneteau opened 3 years ago

antoinebeneteau commented 3 years ago

Describe the bug I can't use the fbq('track', 'Lead') with this configuration

To Reproduce Steps to reproduce the behavior:

  1. Add // With options [ 'nuxt-facebook-pixel-module', { /* module options */ pixelId: 'XXXXXXXXXXX', autoPageView: true, disabled: false, }, ], in Nuxt config
  2. Add methods: { sendLead() { this.$fb.track('Lead', { content_name: 'Pre-subscription', }) }, }, in The Vue component