nuxt-facebook-pixel-module icon indicating copy to clipboard operation
nuxt-facebook-pixel-module copied to clipboard

Pixel id by domain/language

Open ejpg opened this issue 3 years ago • 3 comments

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.

ejpg avatar Mar 24 '21 11:03 ejpg

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

vana-dev avatar Apr 27 '21 10:04 vana-dev

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.

sgsrra avatar Jun 25 '21 11:06 sgsrra

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

ksolberg avatar Sep 13 '21 08:09 ksolberg