GA4 page view not matching - google-analytics

We have debugged our GA4 properties extensively and the GTM configuration is correct. We still are seeing a discrepancy between UA and GA4 page view numbers. I have seen other demos where the numbers should closely match between UA and GA4, but ours are showing slight gap. What could be causing this? We have looked at specific pages that may be getting more views but nothing indicates why this is happening. Everything uses the same triggers in GTM.
Also are custom event counts supposed to closely match? Why would there be a discrepancy between those when they also use the same triggers in GTM?

Related

Google Analytics - gtag property

I have one GA account and multiple GA property in that account. The question, what's the Ideal set up in adding gtag? I know that each property has its own gtag code, so, should I use each gtag code and adde them in every webpage? The weird thing is, previous landing pages use one gtag code and it worked before in all the properties.
info.example.com
(Account)
info.example.com
(property)
info.example.co.uk
(property)
info.example.hk (property)
Surely the tracking code must be present on all pages, then it depends on how you want to track. You can do it all within the same Property or in separate Properties.

Google Analytics with GTM; is it possible that data will be duplicated?

I'm fairly new to Google Tag Manager, in the past I've just fired events straight to Google Analytics. What I'm wondering is this; is it possible that, if you use Google Analytics alongside Google Analytics tags in GTM, can you get duplicate data in Google Analytics?
For instance, let's say I have a Pageview tag in GTM, as well as GA on the webpage as normal. Would this count as two pageviews? (ie. one from standard GA, one from the GTM tag)
I've looked around for an answer, but maybe it's just a stupid question!
If both track to the same property you'd get two pageviews in that Ga property.
However there is a good chance that both pageviews would end up in different sessions; GTM creates a random name for the Google Analytics tracker, while the tracker within the page would track to the standard tracker (t0; read about naming trackers here), unless configured otherwise.
IMO it is not a good idea to mix GTM and inline trackers with the same property, since it's hard to be sure that both use the same configuration. And yes, your pageview will be counted twice.

Preventing an iframe on the same domain from triggering a page exit in Google Analytics

I am working on a third party website that contains a web application embedded in an iframe on the home page. This iframe is hosted on the same same sub/domain.
Currently page views are being tracked with _trackPageview. Due to a requirement by marketing both pages use the same Google account Id.
Since the iFrame was implemented the marketing department has noticed that the bounce rate has dropped to almost nothing. I suspect that this is because Google is interpreting the pageView event on the iframe as the visitor hitting another page on the website.
Just for additional information, the domain of the _gaq object is being set to "none" for both the container page and iframe.
Does Google provide a mechanism by which you can trigger PageView in such a way that it isn't interpreted as subsequent pageview in this scenario? (I know that trackEvent has a noninteraction property to deal with this?)
Am I better off just disabling the PageView for the default iframe page?
Does Google provide a mechanism - apparently yes, but probably not for your use case.
The field documentation for Universal Analytics describes the non-interaction field thusly:
Specifies that a hit be considered non-interactive.
So in UA this does no seem limited to events but to apply to all hits (which would include pageviews). I want to point out that I have no tested it and that it seems counterintutive, so it might simply be that the documentation is incomplete/wrong here.
However as you are using "classical" Analytics this does not apply to you. Since upgrading the code is a good idea in any case you might want to push for an update to Universal Analytics (this piqued my curiosity so I will test this over the next few days and update this answer with the results - maybe you want to wait until then, or simply test it yourself).
It's possible, but not 100% clear to me that disabling the PageView event on the iframe will prevent your users from registering a page exit (the pageview may get recorded regardless). You can try removing that event and see if it works.
But a better way may be to implement a custom filter on a new View excluding traffic to that specific class of iframes. Make sure you keep your old View (or create a new one with further filters) to make sure you're capturing those iframe views, if you think that's necessary.

Google Analytic's / Duplicate entries / Google Tag Manager

We have Google Analytics on our site. This site also uses Google Tag Manager (unsure whether this is causing the issue or not).
The issue is that within Google Developer on the Network tab it looks like Google Analytics is being called three times, therefore messing up the actual analytics side.
I have searched the web for this issue but most put it down to the page refreshes etc. This is not the case with ours. This happens when it is first loaded.
Each URL is different slightly. I looked through the site code hoping to find duplicate data (script for Google Analytics), sadly I haven’t. Neither have a found duplication when I 'View Source'.
At this moment in time I am puzzled as to why this is happening.
I have noted the parameters are slightly different between the three, I am thinking this is why it looks like its being called three times, why would it do this?
DP: Document location URL (The call which doesn't contain GTM, contains this)
GTM: Google Tag Manager (Two of the three
have this in the third doesn't)
CD1: ? (The call which doesn't contain GTM, contains this)
Z: Cache
Any ideas will be greatly appreciated.
Thanks,
Clare
Most definitely possible that GA and GTM both sending page views. If you are using GTM then you should remove ALL GA code from your pages as GTM replaces all GA.

Listeners return different results on different browsers even after clearing cache/cookies

I believe Google Tag Manager is fairly new and nothing much is going on yet. I went all around Google looking for a solution, but simply gave up after trying all possible solutions. I'm using a Wordpress blog platform, and have integrated Universal Analytics and Google Tag Manager. The settings for my listeners are as follows:
====Link Click Listener====
====Outbound Link Click Tagger====
====Outbound Link Rule====
I used console to test the dataLayer, and it retrieves gtm.load, gtm.js and gtm.dom, but regardless of whatever I click, I see on my Google Analytics that the events are undefined even though I provided the necessary parameter to name them. However, when I tried to do it on a different browser, it works, but not completely (instead of outbound link, it will record it under click), or the outbound works for a completely random client on the Internet, returning the tag "outbound-link" but with an undefined action.
Any ideas?
UPDATE I just noticed that there is a difference between a left-mouse-button click and a middle-mouse-button click. The middle one is not measured, whereas the left-mouse-button click is.
For starters there is an error in your rule. You want "{{element url}} does not contain welink.com" instead of just {{url}} (which would mean that the tag should not fire on your domain at all).

Resources