Andreas Kroll
Andreas Kroll
... but it not work with `
Got the same issue. Is there a fix anyway?
Hmm I don't know. Maybe you can seperate between Google Analytics and GTM in Cookiebar Config. See here: [https://www.analyticsmania.com/post/gtag-vs-google-tag-manager/](https://www.analyticsmania.com/post/gtag-vs-google-tag-manager/) GTM wants to fetch a special URL (https://www.googletagmanager.com/gtag/js), but can't recognize...
that would be enough, to make the url selectable
Stick to documentation of GTM and Analytics: **GTM** [gtm.js] (https://developers.google.com/tag-platform/tag-manager/web/datalayer) ``` (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= '[https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);](https://www.googletagmanager.com/gtm.js?id=%27+i+dl;f.parentNode.insertBefore(j,f);) })(window,document,'script','dataLayer','GTM-XXXXXX'); ``` **Analytics** [gtag.js] (https://developers.google.com/analytics/devguides/collection/gtagjs) ``` window.dataLayer = window.dataLayer || []; function gtag(){window.dataLayer.push(arguments);}...
In my opinion it would be the easiest way to add another option here: 
> Yes I think that is the right way. Is it possible for you to provide a PR for it? Unfortunately at the current time i'm in a lack of...
I have to test it.
Not yet, i'm on it
> > For reference, this is what Contao is using now: [contao/contao#4887](https://github.com/contao/contao/pull/4887) > > It looks like both variants would work with the following code, which is why I would...