-
Notifications
You must be signed in to change notification settings - Fork 45
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
GoogleTagManager: custom gtm.js source #152
Comments
Hi, the best way to do this is to just provide the entire src yourself. scripts: {
registry: {
googleTagManager: {
id: 'GTM-123456',
scriptInput: { src: 'https://analytics.domain-xyz.de/gtm.js?id=GTM-123456' }
}
}
}, The types don't fully support this but they will in the next version. |
The source replacement works, but fails with CORS header 'Access-Control-Allow-Origin' missing |
You either need to serve the CORS headers from your domain or disable the scripts: {
registry: {
googleTagManager: {
id: 'GTM-123456',
scriptInput: {
src: 'https://analytics.domain-xyz.de/gtm.js?id=GTM-123456',
crossorigin: false,
}
}
}
}, |
Describe the feature
In one of our client projects we use a self hosted GoogleTagManager Instance + Matomo (GDPR).
So we need the possibility to specify a custom source for the gtm.js script.
Additional information
just a quick idea for implementation ... tpc/utils.ts:98
The text was updated successfully, but these errors were encountered: