Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tag is not compatible with custom data layer name #6

Open
joedarsh opened this issue Jul 12, 2024 · 0 comments
Open

Tag is not compatible with custom data layer name #6

joedarsh opened this issue Jul 12, 2024 · 0 comments

Comments

@joedarsh
Copy link

Google Tag Manager allows you to set a custom data layer name to avoid conflicts with other Google tags, however in this template the default data layer name is hard coded (line 351):

const dataLayerPush = require('createQueue')('dataLayer');

This results in consent initialisation being pushed to the wrong tag if using a custom name.

I've come up against this and modified the template in our GTM property to use our custom data layer name, however it would be great if data layer name could be a configurable option in this template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant