I'm trying to setup a Google Optimize Container for A/B testing + other. The issue I'm having is that I definitely need to link to Google Analytics in order to measure results. When I try and link to a Google Analytics property for this only the Universal Analytics properties I have (which I don't actually use) show up, but not the Google Analytics 4 property I'm actually using. Am I doing something wrong? Is the connection not actually implemented yet by Google?
TL;DR: Google Analytics 4 Properties don't show up as linkable in Google Optimize Container.
follow this step:
create a new property in. google analytics
Click on show advance
Activ Create a Universal Analytics property
Add your website address
Create both a Google Analytics 4 and a Universal Analytics property
UPDATE 2021/04/06:
Trying to link it in Google Optimize says Coming Soon. Looks like we just have to wait.
GA4 is not supported. As of right now you can't link a GA4 property to Google Optimize.
GA4 is not on this list https://support.google.com/optimize/answer/6315871?hl=en
This thread: https://support.google.com/optimize/thread/80704065?hl=en
I was able to get around this issue by adding an additional property to my GA4 account. You have the option during the creation process of the GA4 account to provide support for both GA4 and universal analytics. You can also add the support after the fact as well... just go into your admin section of Google Analytics and create a new property. After that, you will be able to connect Google Optimize and your GA4 account.
I believe #Kenneth Durrum was referring to creating a "Universal Analytics property" instead of a GA4 property. You can also create both as mentioned by #mohammad hossin rouhani, but Google Optimize will only work for the Universal property. Please refer tho the image below for selecting the Universal property on Admin console. (Added this as an answer since i was not able to attach the image on Kenneth's comments).
If you create a new Universal Analytics property, you can link it to your existing GA4 property under Admin > GA4 Setup Assistant
Related
Looking at the GTM documentation, specifically the Tag Dictionary, there appears to be references for Universal Analytics and even Classical Analytics - but it doesn't mention GA4 anywhere.
Is it therefore not currently possible to create GA4 tags, triggers, etc.
through the Tag Manager API?
If it's not possible, are there any alternative ways to automate the creation of GA4 tags?
I should have done a bit more digging before posting this question.
While it's not mentioned in the documentation, there are in fact tag types for GA4 - Configuration is gaawc and the Event tag is gaawe.
how to add google analytics in my chrome extension, in react js ..
i want to fire some custom event when my specific condition is satisfy and I want to show in google analytics .
please guide me step by step
In order to integrate Google Analytics into your React app, you first have to create the respective GA Property (which I am sure you have already done on the Google Analytics website). Then copy the script that Google Analytics provides and add a script element into the body of your React app that contains the copied script at runtime.
I wrote an article explaining exactly this problem in-depth, you can read it here.
I created a new TagManager Account.
I added the Code to the head and body space on my website.
I created a Container.
I added a Google Analytics Tag
I created a Variable with exact the UA-XXXXX-1 id for my property.
(I have dozens of different Google Analytics properties in my account.)
Now when I publish the Google Tag Manager changes, the Tag is published and visible. But it publishes a SECOND WRONG property-ID. UA-XXXXX-2.
Yes, the UA-XXXXX-2 is also in MY ACCOUNT. But a complete different Website property!
I have no clue where the TagManager - which is setup completely new - gets the ID from another property. I didn't provide that ID anywhere (the property is archived).
The "Google Tag Assistant" is telling me that I have multiple Tags implemented, but that could not be true.
Error Message: (Multiple Google Analytics tags detected)
How can I solve that?
Affected site "www global-nights com"
This is not a GTM problem. The second account is bundled in a Javascript file (/cdn cgi/apps/head/6sJWcjIvV53_JPO8tyNGb15vJYg.js) included on the top of your page:
So I guess you should be looking into your Cloudflare settings rather than be looking at GTM.
I've successfully implemented Google Enhanced Ecommerce on one of my websites, where I also have a Google Universal Analytics tracking code. Now we want to change to Google Tag Manager, thus replacing the UA tracking code with the Tag Manager Code (correct?)
Will this affect the Enhanced Ecommerce tracking in any way? Or can I just replace the tracking snippet and the ga('create')-parts with the Tag Manager-snippet?
You need a correctly set up dataLayer (which rather more complicated since you need info on product impressions etc). Documentation is here:
https://developers.google.com/tag-manager/enhanced-ecommerce#enable
Then you create a news Analytics Tag (just a pageview or event, there is no need for a separate transaction tag) and select "Enhanced Ecommerce" with the "Use datalayer" option in the advanced settings.
GTM will pick up the values from there datalayer and do the rest for you.
So yes, you can get this to work, but it requires a lot of preparation for the correct datalayer implementation. Simply replacing the GA code with the GTM code will do very little except breaking your tracking.
I have created a new website and trying to add Google Analytic stumbled upon Google Tag Manager. Looks like based on what I am seeing there I don't need to create Google Analytic account at all. Am I right or I am missing something?
GTM is just a tag manager. A tag manager outputs tags based on rules and data layers and stuff. GTM has tight integration w/ GA (as opposed to just outputting the code in a generic container) since it's a google product. But GTM is separate from GA. You still need to create a GA account and specify that acct # in GTM. All GTM does is output the GA code. GTM does not collect the data or provide reports. That's what GA is for.