analytics
analytics copied to clipboard
Google Tag Manager not working with custom domain
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.
I have created a pull request with a fix: #307
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' }) ] })