nuxt-facebook-pixel-module
nuxt-facebook-pixel-module copied to clipboard
Can't use 'track' event
Describe the bug I can't use the fbq('track', 'Lead') with this configuration
To Reproduce Steps to reproduce the behavior:
- Add
// With options [ 'nuxt-facebook-pixel-module', { /* module options */ pixelId: 'XXXXXXXXXXX', autoPageView: true, disabled: false, }, ],in Nuxt config - Add
methods: { sendLead() { this.$fb.track('Lead', { content_name: 'Pre-subscription', }) }, },in The Vue component