analytics icon indicating copy to clipboard operation
analytics copied to clipboard

Google Tag Manager not working with custom domain

Open AdrienFery opened this issue 3 years ago • 1 comments

https://github.com/DavidWells/analytics/blob/764fd74ddf130a213f9ba11d6a40e68bdfa44862/packages/analytics-plugin-google-tag-manager/src/browser.js#L119

The regex here do not take into consideration customScriptSrc parameter.

AdrienFery avatar Sep 03 '22 10:09 AdrienFery

I have created a pull request with a fix: #307

AdrienFery avatar Sep 03 '22 12:09 AdrienFery

Hey all, can the custom domain be passed as a configuration when initializing the Analytics object e.g. const analytics = Analytics({ app: 'awesome-app', plugins: [ googleTagManager({ containerId: 'GTM-123xyz', domain: 'mycustomdomain.com' }) ] })

nourdandan avatar Aug 29 '23 08:08 nourdandan