Andreas Kroll

Results 20 comments of Andreas Kroll

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...

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: ![image](https://user-images.githubusercontent.com/8830861/194568252-3b9e9dcc-ed94-42ed-8fda-c1bac8938a8e.png)

> 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...

> > 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...