Google Analytics Custom Dimension Not Tracking Accurately - google-analytics

I have two custom dimensions set at the session-scope level within GA to capture an article's content category and subcategory in the blog of the site. GA populates these values about 60% of the time, with the rest not being set, and of the 60% that are populated, they're not always the proper category/subcategory for that blog post, but rather a different one.
You'll notice in the screenshot that the custom dimensions are being pushed, but the first GTM tracker (gtm2) is showing them as undefined, while the second tracker (gtm7) populates them from the datalayer.
Console Screenshot
I'm using GTM to push the custom dimensions into the datalayer with the Google Analytics Settings variable. Tag Manager Implementation
Have any suggestions on why the dimensions aren't populating properly within Google Analytics at the pageview level?

It is likely that at the time of loading the GTM (gtm.js) the value of those variables is not yet available, while at load (gtm.load) it is.

Related

Implementing User-ID With Google Tag Manager

I have added Google Tag Manager to our site, and using the data layer inserted several custom dimensions, including 'user_id'
Data Layer with user_id shown
The Google Analytics variable in Tag Manager is configured to pass these data layer variables into the coresponding dimensions:
Tag Manager Variable & Dimensions in Analytics
I know this is working as I am able to add this as a secondary dimension in Analytics when viewing reports:
Analytics with Dimension Shown
However, the user view that is created when I have set up the User-Id isnt showing anything:
Creating the User View
We installed Tag Manager using the recommended steps:
Installation of Tag Manager
Do we also need to add the 'Global Site Tag Tracking Code'?
How to Implement the User-ID in your tracking code
If not, what am I doing wrong?
You're actually REALLY close. You actually don't need to create the custom dimension.
The correct way is to set the userId field in your GA tag (I did it through a GA variable so it is applied everywhere).
Yes, that is exactly correct (what #XTOTHEL answered above), but for those who are reading this, I found these two blog posts helpful (esp if you are using GTM):
GA UA: https://www.analyticsmania.com/post/google-analytics-user-id-with-google-tag-manager/
GA4: https://www.analyticsmania.com/post/google-analytics-4-user-id/
And of course, the GA docs: https://support.google.com/tagmanager/answer/4565987?hl=en

How to setup data layer variables values of a link click in Google Analytics Dashboard

I need understand that is there any way from which I can see my custom data layer variables values in Google Analytics dashboard.
What I have set on website page on link click:
On 4th object you can that I have pushing a variable name "role-name" on link click.
I just want this value on Google Analytics Dashboard. (See below Screenshot)
Please help me how I can see this Google Analytics dashboard later I need to push more than one custom variable value too.
Waiting for kind responses.
Thanks in advance.
You must send that value together with a google analytics hit (for example a custom dimension with pageview tag).

One of my Custom Dimensions not showing up completely on Google Analytics?

I created 3 custom dimensions through Google Tag Manager (added them as Data Layer Variables). Then, I added custom fields to my pages for these 3 custom dimensions.
After waiting about 24 hours, I checked the three custom dimensions on Google Analytics and two of them have showed up for all of the pages. The last one is showing up for maybe 4-5 pages, but not all of them. It's now been more than two days and the other pages still haven't populated with the last custom dimension.
Is there a quicker way to see if this third custom dimension is showing up for all of the pages with the designated custom field?
Since this is being done on a test site, most pages have not been visited a ton. Not sure if this can also matter for how long it takes Google Analytics to populate the data.
Get the chrome extension 'GA debugger' and go yourself to the site. On the console you ll see each hit sent to GA and all the fields that are being populated.
PS: Custom dimensions ll show up as 'cdX' where X is the number of the dimension.
I think you are passing the custom dimensions along with pageveiw. you can check the GA tags that are firing in network tab of your browser only to validate
In your browser access inspect element by right cliking on website and select network tab you can check the screenshot mentioned in the below URL to make all setting required to see GA tags in network tab
http://imarunkumar.blogspot.in/2016/08/blog-post.html
And then reload the page and you can see the Google analytics tags firing, check your tags if custom dimensions are being sent in the tags.
I hope you have provided the right custom dimension index number in GTM while creating the tags. Assume you are sending data to custom dimension 1,2,3 the in tag you can see the values sent.
cd1:xxxxxx
cd2:xxxxxx
cd3:xxxxxx
This confirms that Custom dimension tags are being captured on the page and sent through GA tags to Google analytics.
What if you can see these custom dimension beign sent through the tags but you cannot see the same in reports.
Here the custom dimension configuration you did on the analytics property needs to be reviewed.
As you are collecting all the custom dimension at every page the scope for these custom dimensions should be set at "HIT" level.
Let me know if you are facing any issue in checking them according to the instructions provided above.

View dataLayer's data in Google Analytics by event

I do not understand how to catch data from an event in google analytics.
I watch my event
My dataLayer is like the documentation (https://developers.google.com/tag-manager/enhanced-ecommerce#cart)
My question is : How can i see that (product's data and actionField) in Google Analytics ?
Thanks,
The "step" is visible in the Checkout Behavior report in the E-Commerce-Section of the Conversions-Menu (it's displayed as a funnel step in the visualization and you can give it a proper name in the view settings).
Checkout options can be displayed as secondary dimensions, used in segments, custom reports and via the API (they are not part of the standard reports).

Custom dimension not populated by GTM

I have two sites set similarly, where I have a 'hit' level custom dimension in Universal Analytics. In GTM I have a tag which populates this custom dimension with a time stamp.
In one of the sites, the custom dimension gets populated. In the other it doesn't. In the screenshot you can see the GTM debug pane for the fired tag in the site that's not working. It seems like GTM is sending the data over - but for some reason I can't see it in Google Analytics (and in the other site it is)

Resources