Hi there,

This is working on a Multi domain site (Domain access) for sites that use the older 'UA-' style tags. But for Google Analytics 4, which is now pushed by default, that uses measurement ID's (tags that begin with G-) which don't seem to work.

Can someone confirm if this is a known issue or if something is missing?

Many thanks

CommentFileSizeAuthor
#5 fix_to_work_with_ga4.patch1.2 KBdonbuche
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

vince.rowe created an issue. See original summary.

donbuche made their first commit to this issue’s fork.

donbuche’s picture

StatusFileSize
new1.2 KB

First at all, my apologizes if I did something wrong before.
I was trying to upload a patch for this issue, and it is my first time doing something like this.

Hope this patch fix your problem.
Cheers.

gorkagr’s picture

Status: Active » Reviewed & tested by the community

Hi!

I can confirm the MR works. Support for old UA- properties ended this summer, so this code should be in place for any new GA-xxx property

gorkagr’s picture

Version: 8.x-2.3 » 3.0.x-dev
Category: Support request » Bug report
gorkagr’s picture

Title: Does this work with Google Analytics 4 - Measurement ID's? » Change <script> code so it supports new GA properties

i-trokhanenko made their first commit to this issue’s fork.

  • i-trokhanenko committed a3c6e024 on 3.0.x
    Issue #3321116 by donbuche: Change <script> code so it supports new GA...
i-trokhanenko’s picture

Status: Reviewed & tested by the community » Postponed

Committed to 2.x and 3.x branches. Thanks!

i-trokhanenko’s picture

Status: Postponed » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.