Problem/Motivation

The site in question runs D10.3.10, PHP 8.3, … and was updated in every which way.

However, having installed Google Tag 2.0.7 my tag G-xxxxxxx works fine on the site in question.
It also works when COOKiES is active, without the COOKiES g_tag submodule active.
The Google cookie check is happy, everything's fine.

Once I activate the COOKiES g-tag submodule, happiness ends. And it's impossible to get the gtag shown in the header. I put it "always active", and I removed the "consent necessary" flag not to interfere with Googles tag checking, but to no avail. I had all the settings of COOKiES at their default values without any success. I also installed that patch which was said to help in certain cases, but nope.

To get the gtag working and seen by Google's tag verification again, I have to de-install COOKiES gtag AND Google Tag modules, and after re-installing Google Tag, tag verification works.

In previous versions of this module, I could get it going using a GA tag with the analytics submodule, but since we converted all GA tags to G or GTM tags COOKiES refuses to insert the snippets to the pages. Note: the problem even exists with sites where no analytics was installed before, so it's not a problem caused by changing tag-type …

Steps to reproduce

Read above …

Proposed resolution

Maybe it's just something I'm missing -- but it has to be well hidden as I'm dealing with this problem for quite a while now. But as the module seems to work for a lot of sites, I suppose it's something which could be fixed by proper documentation.

Comments

nofue created an issue. See original summary.

nofue’s picture

Issue summary: View changes
anybody’s picture

Version: 1.2.13 » 2.x-dev

Maybe google_tag module made changes we need to map here. Thank you for the report. Could you please try with latest 2.x release?
I guess it's the same, but 2.x is much smaller client file size and is where development happens now.

anybody’s picture

Status: Active » Postponed (maintainer needs more info)

@nofue still an issue with 2.x? Didn't see any other reports here.

milosr’s picture

Status: Postponed (maintainer needs more info) » Active

I have the same problem.

Drupal 11,

freshly installed site with the latest updates.

When module is installed, Google Tag Manager doesn’t work. When I uninstall it, everything works fine.