Google Analytics 4 vs. UA: Why are Event and View Counts are Drastically Different? - google-tag-manager

I had UA property and was loading it through GTM on web pages. Please refer below screenshot.
Now, I created new GA4 property and loading that also through GTM on web pages. Please refer below screenshot.
View count and event count is working same for UA & GA4 for main domain. It's max 10% difference which is fine. But If I compare total page view of subdomain for specific or each page for specific date, it is more than 90% off.
EX:
Below is sub domain page view count for https://sub.xzy.com/page1
UA Count - 9000
UA Unique Count - 600
GA4 Count - 200
GA4 Unique Count - 20
I read many articles but it says 10% off is fine but this is huge difference. Please help me if I missed anything.
I tried GTM debugging. While I open page using GTM debugger, it is firing both UA and GA4 tags. Even when I checked in real time data in analytics and GA4, both are getting correct view count.
This means GTM is running correctly and also analytics getting events from GTM. But not sure why view count is off for subdomain pages.

Related

How to instantly check if GTM Tag created is tracked in Google Analytics?

I created a custom metric in Google Analytics to track users who end up on that page.
This is the metric:
This is my setup in Google Tag Manager:
While I can see from GTM preview that the tag is firing, I don't understand why I don't see anything related to this in the Realtime -> Events (https://i.imgur.com/uLYvyWk.png).
Question 1: why does nothing show up? Do I have to wait until tomorrow for data to be populated in the reports view? If so, is there a way to instantly check whether the tag is tracked by GA? Having to wait 24 hours to know whether the tag is firing sounds abit long.
Question 2: Am I setting up my custom metric correctly? The intention is to track the error rate of users and be able to see which geographies / age range etc they come from.
Thank you!
the GTM tags in your screenshot are Pageview tags, so they wont show in the Real time > Events section. Check the Real time > Content report for your pageview being fired.
If you want to pass the metric with an Event, you need to create an Event tag and add the metric to the Event tag.

Using Google Tag Manager to track conversions in Google Analytics

I have managed to set up Google Tag Manager to fire off events to Google Analytics when links are clicked on different pages of my websites. I know it works as when I click the links, an alert shows up in Real Time --> Events section of Google Analytics.
I was wondering how to implement the following: For each page on my site I would like to see in Google Analytics the conversion which I define to be: Number of Relevant Links clicked on Page / Number of visits to Page. The numerator in this instance being whatever came from Google Tag Manager.
Thank you.
You are tacking about metric, not conversion. For conversion tracking you have to define exact value.
To track such metric you can use calculated metric with a formula X/Pageviews, where X is can be number of events (link clicks in your case).

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)

Do Google Analytics goals, events, or transactions trigger a pageview?

If I programmatically trigger a goal, event, or a ecommerce transaction on a certain page, does Google Analytics register a page view on the page? (which would show up under Behavior > All Pages for example)
With goals it's actually the other way round - a pageview might be defined as a destinantion goal, i.e. the pageview triggers the goal. However the goal is not a pageview by itself, especially since it only exists in the view configuration.
Events and transaction won't show up as pageviews, either - but then thinking in pageviews does not always make sense. It's much better to think of "interactions", people doing something with your page. So an event will not show up in the page content section of your report, but it is still an interaction that shows up in the behaviour/events report and may e.g. have influence on your bouncerate. PLus any interaction will count towards your hit quota (free version of GA is limited to 10mio user interactions per month).
Google Analytics will only trigger a pageview in the following two conditions:
A page view is registered whenever one of the pages on a traditional web site is visited. In other words, if a user takes an action that causes the browser to refresh, a pageview will be counted. Take note, this does not count for single-page (ajax) applications.
Additionally, a page view can be manually triggered by issuing ga('send', 'pageview'); using analytics.js. You can attach this code to nearly any sort of event (including ecommerce transactions).
A pageview will not be registered otherwise.
Read about analyics.js here.

Not able to group Google Analytics custom events by page

I have custom events being successfully tracked in Google Analytics.
However, when adding a secondary dimension of page, or when creating a custom report to group custom events by page, my numbers go way off. The total events number goes down, and half of the events that I saw in the unfiltered report are no longer there. My custom report is setup quite standard from what I can tell. Does anybody have any experience or similar issues to this? Are we not tracking something correctly?

Resources