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.
Related
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.
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
We have a site where users login to access technical information. Before accessing the information, they also have to enter a set of filter options. Different filter options result in different information displayed on different pages but the url is the same.
For example, a user will get the following URL when accessing a specific document, regardless of what filter options set:
www.site.com/fr/category/document/
Depending on the filter options, different sections of the document will be visible.
Currently, no information in GA tells us what filters were used when visiting the page. We do not want to add filter parameters to the URL. At least not for the visitor, but maybe add it in the tracking somehow?
What would be the optimal/correct way to track that kind of information?
Best solution may depends how your site works etc. But how about using custom dimensions assigned to "hit" (pageview) scope? Maybe they will help in your case? Documentation: https://developers.google.com/analytics/devguides/collection/analyticsjs/custom-dims-mets (code in documentation depends how your GA is implemented of course). Thanks to them you can send with pageviews hit additional (custom) information (e.g which filters were used).
Other way could be just sending google analytics event (https://developers.google.com/analytics/devguides/collection/analyticsjs/events) with information which filters were used before pageview hit. Then just in Google Analytics panel you can create custom segment with sequence where 2 events occurred:
Click (or use filters) - event
See specific URL - pageview
Or of course you can implement both solutions (custom dimensions for pageview and events).
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)
I am using google tag manager to fire tags for my website, I created custom javascript variable which returns count of my jstree selection (i.e how many users selected how many items) and i placed a trigger on this count, just wanna know if there is any way that i can see this count on my google analytics page so as to analyse how many users are selecting how many items?
Found answer myself, Hope it will help others too.
To show count of any custom variable that you created on your google tag manager on your Google Analytics page is possible by creating custom dimensions on Google Analytics. Steps for doing this are below :-
Go to your google Analytics account, open admin section.
-Then go under property-->custom definations and select custom dimensions
click on new custom dimension add name and select scope "session" and click on create (Note :- please note your dimension index).
Go to google tag manager, Create a new tag, click on more settings under "configure tag" and add custom dimension, place index number and dimension value(custom variable that you created) here.
set your firing rule and save it.
Now, you can see it under report by setting secondary dimensions as custom dimensions. Also if you want to further analysis on this data you can also use Biq Query plugin for GA.
You are ready to go!!