Why are my Google Analytics Page Timings all 0.00%? - google-analytics

Why are my Google Analytics Page Timings all 0.00%?
Is doing something like this enough to get page timings or is there something different I should be doing?
/* GOOGLE ANALYTICS ID */
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', [myid], 'auto');
Other stats are working using same ga which I set to my account ID.

That's because of bounce rate.
When a visitor comes to your site, he or she gets a timestamp. So, Analytics might note that User landed on your Homepage at 17:35:03. Then, Analytics assigns a new timestamp when that user accesses a new page on your site. So if user clicks on a link to your About page at 17:36:04, that leaves your Homepage with a Time on Page of 00:01:01.
But what happens if user never accesses another page on your site (in other words, if bounces?
Then there's no second timestamp for Google to work from. So they assign a Time on Page of 00:00:00.
There are few workarounds.
One is explained here: tracking adjusted bounce rate.

I am struggling with this issue as well. After researching the page tracking site timings, it appears there could be a few issues causing the timings not be recorded:
GA Support
If you see Help in the PageSpeed Suggestions column, this indicates that we were unable to analyze the page at the given URL, and you should try again later. If the error persists, it may be due to any of the following:
-The hostname you have configured in the Website’s URL section of your View Settings is not a valid hostname for your website.
-The URLs shown in the Site Speed Suggestions report are not valid URLs for your website.
-You are tracking multiple subdomains and not using a single hostname.
-You have set up view filters to rewrite your URLs.
-The page requires authentication.
Most concerning to me is the "page requires authentication" item. I think that will prevent me from collecting this data.

Related

Google Analytics - Custom Dimensions sent to wrong website's google analytics

I have two google analytic views setup like below:
Website's URL: abc-x1.test.com
Website's URL: abc-x2.test.com
image
The urls are different by subdomains and they are separate web applications.
I added ga tags, ga('create', 'UA-XXXXX-Y', 'auto'), in both web applications and every time a button is clicked it sends some custom dimensions.
The problem that I'm having is even though I clicked the button in the first website (abc-x1), it sends dimension information to both websites' google analytics. (or not sure if it's sending it to both but I can see the dimensions coming in in both views when I do query).
How can I send custom dimensions to the website where I clicked the button but not to the other one?
You have to add a filter based on domain for each views. The website entered in you screenshot is not used to distinguish the site data, it has another function in reports but has no impact on the data.

Sessions from Google Ads are not tracking by Google Analytics

I started to notice that my Google Ads clicks wasnt 100% counting by google analytics (For exemple, during a certain period I had 300 clicks and only 100 sessions were counted as Paid Search on analytics). So I contacted Google Ads Support, they investigated and came to me with this:
Actually, your site is losing the attribution of Google Ads because of an automatic redirection of the structure in which it was developed.
When we have Google Ads linked with Google Analytics, they are talked through a parameter called GCLID. To verify this loss, follow the path I made (in several products, here is an example):
1- I accessed the link https://mywebsite.com/products/running-shoes?variant=15320930779194
2- After full site loading, I added the & gclid = Tester123 parameter to the URL (in the browser, so the final URL was https://mywebsite.com/products/running-shoes?variant=15320930779194&gclid=Tester123) and hit Enter
3- To understand if there is a redirect, the normal behavior would be for the URL to remain the same (with & gclid = Tester123 at the end), but in this case, the parameter some (and hence the assignment)
So, the campaign actually appeared (not set) in Analytics, and could be assigned to any of the other channels (Direct, Organic, ...) For this to be resolved, the site structure must stop causing this automatic redirection in the final URL of each product. With this, the results will be effectively assigned to Google Ads.
They also said that if even if I want to use manual tracking (UTMs) I would still have that problem, since the redirections would keep spoiling it.
As I use Shopify as my website platform, I checked with them and I have no redirections that are causing this problem, at least not created by me nor that their support know.
So I am lost over all this. I dont know where to start solving this problem. Google doesnt tell me what kind of redirections may cause this, I dont use any kind of redirections, and Shopify cant tell me if their code causes this problem (what I dont believe, because other shopify websites would also been suffering from this).
So can anyone give me any direction about this? What redirections may be causing this lost of data?
Thanks for your time!
One thing to note, Google Ads might have a different way of counting, there is the possibility of multiple clicks per session.
That said, you can try Google Tag Assistant, start your recording, click on one of your ads, follow that through and see the parameters being passed.
Unfortunately, it is hard to debug with limited information. The more details you can provide the better.
Check where your GA code is placed in the page code. If GA script is at the bottom of page or there are some heavy scripts above GA tracker, losses of bounced sessions can be large. I.e. user enters the page and immediately closes it. GA script doesn't have time to download.
Why user closes the page immediately?
Сlick by mistake
Slow site
And check that all your landing pages are OK and have 200 server response.

Google Analytics - one real time monitoring for more domains

Is it possible to set up google analytics for more domains with one real time monitoring.
I have one main domain and 100 subdomains.
Example:
main.com
sub1.main.com
sub2.main.com
sub3.main.com
...
I want to track visitors in one google account with one real time monitoring. How can I do that?
Thanks
You do that by adding the same Google Analytics tracking code to multiple domains. The base domain from the Property/View settings are not relevant for data collection, so the same code will run on arbitrary domains.
(edited) Even less of a problem with subdomains. The default setting for the cookie domain is "auto", so the same cookie will be used for all subdomains. If you do not want this (e.g. if you want a user who switches between subdomains to be considered a new user) then you would need to set the cookie domain dynamically to the respective subdomain:
ga('create', 'UA-XXXXX-Y', {
'cookieDomain': document.location.hostname
});
However by default the reports displays page paths, so you might not be able to tell from which domain a request originated; to do that you need to add a filter to your view that adds the hostname to the page path. An older but still working tutorial is e.g. here.
Naturally everything that shows up in real time monitoring will later become part of the permanent reports.

Can I track Adwords banner click from the other website?

I have an Adwords campaign, it sends users to Website-1.
And there is Website-2 and I want to track whether users that came to Website-2 have ever clicked on Adwords banner leading to Website-1 or not.
I could have set third-party cookies on Website-1 corresponding user is from Adwords and then get this info on Website-2. The problem is I don't have access to Website-1.
Is there any way to gain this info? I do have access to Adwords campaign, it's Google Account, Google Analytics on Website-2, it's Google Account and Website-2 itself. In other words, I have access to everything except Website-1
You might use third-party redirect/counter, for example different ad-serving tool like AdForm, where you should be able to generate unique redirect URL in bulk for your campaign.
Disadvantages:
you loose gclid information on AdWords tracking (because of redirect) and you need to use manual UTM tagging
You need to pay ad-serving fee (few bucks for thousands of visitors) and someone to set it up
You would only know if that someone clicked AdWords Ad, not really visited (beacuse you would count before that someone landed)
In conclusion: don't do it if you don't have direct access to GA of website-1
Yes you can do this in a pretty simple way, just set up Cross Domain tracking as described here:
https://support.google.com/analytics/answer/1034342?hl=en
This will save original source information (including AdWords) wen user goes from Website-1 to Website-2. On Website-1 you need to edit Analytics code (on all pages) and add so called autoLink:
ga('create', 'UA-XXXXXXX-Y', 'auto', {'allowLinker': true});
ga('require', 'linker');
ga('linker:autoLink', ['example-2.com'] );
Make sure that on both websites youre using newest version of Google Analytics: Universal Analytics, because this will not work in older version

Track Google Analytics conversions from domain to subdomain

I'd like to track the conversion rate of my site using Google Analytics across multiple subdomains.
The scenario:
A: www.site.com <- where sessions begin.
B: app.site.com <- where sign up starts.
A conversion for www.site.com is a session moving to app.site.com.
Currently conversions on site.com look like drop offs.
I've already set up two views to separate A and B.
Side note: B is ignoring referrals from A.
I've set up conversion tracking on B.
My question is: how do I track the conversion of site.com sessions travelling to app.site.com using Google's Universal Analytics?
Are you using analytics.js? If so this happens automatically.
The main way people screw it up is by not setting cookieDomain to 'auto', which, if you use the default snippet, should already be the case:
ga('create', 'UA-XXXX-Y', 'auto');
Without seeing your implementation, it's impossible to know why yours isn't working, but just know this does work out of the box with no special configuration.
According to the developer site, Universal Analytics does not require further customisation to the _ga cookie. Use the default analytics.js code snippet to track between your domain and subdomain. Make sure to use the javascript code in both websites.
If you require that a visit to app.site.com is considered a conversion in site.com, then you need to attach an event to the link in site.com that points to the app.site.com and setup a goal for that event.
Have a read to this article, hope that helps.
Cheers

Resources