WilliamDASILVA / nuxt-facebook-pixel-module

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

Pixel id by domain/language #34

Open ejpg opened 3 years ago

ejpg commented 3 years ago

Is your feature request related to a problem? Please describe. I have an app that has multiple domains and by domain has a different language and a different pixel_id code. Im using the nuxt-i18n package to manage this, but i cannot get the actual language from the nuxt.config file.

Describe the solution you'd like An option, similar to the one for routes, but by domains.

vana-dev commented 3 years ago

same problem, missed option in config to set right language, any solution?

sgsrra commented 3 years ago

Same problem.

you could user this code

{ modules: [ 'nuxt-facebook-pixel-module', ], facebook: { pixelId: 'DEFAULT_PIXEL_ID', pixels: [ { pixelId: 'FACEBOOK_PIXEL_ID', routes: [ '/en', '/en/*' ] } ] }, }

but the problem is that the load the default pixel and the pixel by router at the same time.

ksolberg commented 3 years ago

Same problem, seems to track both default and route pixel on configured routes. Any updates?