Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide the tag GA4 #921

Open
Chardonneaur opened this issue Nov 11, 2024 · 5 comments
Open

Hide the tag GA4 #921

Chardonneaur opened this issue Nov 11, 2024 · 5 comments

Comments

@Chardonneaur
Copy link
Contributor

Hi Team,

Please remove the following:
Screenshot from 2024-11-11 12-42-54
as people need to use the gtag.js tag instead.
In GTM, the GA4 tag has been subsituted by gtag instead.
Having it is causing confusion.

@snake14
Copy link
Contributor

snake14 commented Nov 11, 2024

Hi @Chardonneaur . Thank you for taking the time to create this issue. It looks like both tags were copied from the TagManagerExtended plugin. Do you happen to know why both tags were created in that plugin? The JavaScript looks identical between the two, so why can't customers use either one?

@ronan-hello
Copy link

Hi,

The TagManagerExtended plugin has both due to backwards compatibility.
When the plugin was first released, only the "Google Analytics 4" tag existed.
Then Google updates the GTM GA4 tag to gtag.js and renames "Google Analytics 4" to "Google Tag".
The Matomo Tag Manager does not allow renaming a custom tag (this breaks the whole container).
So I simply duplicate the tag to match Google's recommendation and GTM behavior.

Today, the GA4 tag should be removed and no longer used by anyone.

@snake14
Copy link
Contributor

snake14 commented Nov 12, 2024

Thank you for the explanation @ronan-hello . Since the GA4 Tag has been released, we now have the same issue of backwards compatibility. I guess we can try creating a migration script to replace all instances of GA4 Tag with Google Tag. If we can get that to work, we might be able to get rid of the GA4 Tag. Although, we'd have the issue of any containers exported containing that tag type not importing correctly anymore.

@ronan-hello
Copy link

Hi @snake14, Yes of course it would be a great idea.
What about upgrading the Tag Manager to allow tags to be removed from core or plugins ?

@AltamashShaikh AltamashShaikh changed the title Remove the tag GA4 Hide the tag GA4 Dec 3, 2024
@AltamashShaikh
Copy link
Contributor

@Chardonneaur @ronan-hello FYI, we are going to do below steps and will hide the tag instead of removing it.

  1. Hide the GA4 tag, when someone tries to create a new tag
  2. Existing tag should still work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants