alinemorelli / react-gtm

React Google Tag Manager
MIT License
658 stars 139 forks source link

initialise gtm without &gtm_auth=&gtm_preview=&gtm_cookies_win=x #124

Open jjrdevspace01 opened 1 year ago

jjrdevspace01 commented 1 year ago

We believe the params are causing issues. We need the ability to initialise GTM using just the base url

https://www.googletagmanager.com/gtm.js?id=GTM-XXXXX

rather than

https://www.googletagmanager.com/gtm.js?id=GTM-XXXXX&gtm_auth=&gtm_preview=&gtm_cookies_win=x

is this possible?

daniel-bartylla commented 5 months ago

It's possible but no changes have been merged to this repo for the last 3.5 years. So it's unlike that this adjustment will be provided.

If you want, you can switch to this NPM package (repo) here, which supports the function. It's almost the same as this one, so switching is quite easy.