Archivo de la categoría: EN – Google Analytics

How to make sure your whole site is well tracked and only once

Introduction

It´s very important that we track our site properly. However, it may happen that:
a) we are not tracking a part of it
or
b) we are tracking it twice.

Tracking, yes, but just once, please. Let´s see in this post how to detect a possible issue and how to fix it.

The scenario in which this issue can easily happen is when we migrate from harcoded to using a tagging solution.

Let see it with an example: migration from Google Analytics (GA) harcoded to GA via Google Tag Manager (GTM). After the migration, we need to make sure that:

  • The tracking code is included in every page
  • There are no duplicated codes (GA & GTM at the same time)
    Otherwise we will be counting everything twice if both codes are in place for the same page loads or user interactions.

How can we make sure we do it correctly?

We can use tools like Screaming Frog, which is widely common for SEO purposes. But we digital analysts can also use it. And actually it’s recommended to do it when we perform an analytics audit or get a new client / project.

Just go and download the tool from their web. The price is just 149 pounds per year (less than 200 euros) what is fairly cheap for the value it offers. Just think that the cost of having a goofy analytics implementation can be estimated in more than that ….

There’s also a free version, but can just check 500 urls. Depending on the size of your size, it can work for you.

How to start using Screaming Frog.

If you have got the paid version, once you open the tool, click on “Licence” and enter the keys. And then:

1) Customizing the configuration

This is recommended to for two reasons:

  • Avoid stuff we don’t need
    It’s always distracting and makes slower the checking. For example images or CSS.
  • Subdomains are not included by default
    If your site has subdomains, then we should select them.

1

 

 

 

 

 

 

 

2) Using the filters to see whether the GA & GTM codes are included or not

We can filter pages “containing” and “not containing”. And we should check both options. For both, GA & GTM.

The ideal result of this is:

  • Contains GA:  no results
    Harcoded GA has been removed from all pages
  • Does not contain GA: all pages
    Harcoded GA has been removed from all pages
  • Contains GTM: all pages
    GTM is in the whole site
  • Does not contain GTM: no results
    GTM is in the whole site

The most important filter is “Does not contain GTM” (to detect inmediately if some pages don´t have GTM). But as explained before, we need to make sure these pages don´t contain GA & GTM at the same time.. “Does not contain GA” is not really necessary.

 

Once the filters are ready, we just need to introduce the name of the domain and click on “start”
5

Wait it comes to 100 % to look at the results.

Click on “custom” (blue arrow) and select the filter you want to apply (red arrow) -remember, about contains or not contain a specific code-

Now you can get a list of all the pages in your site (including subdomains if you did include them) matching the condition we are applying in the filter. This list can be exported to Excel.

3) Detecting tracking issues and fixing them.

  • Pages without GTM code

This is easy. Just need to use the filter “not containing” GTM.
If everything was done properly, we will not get results here.

– Next step if there´s something wrong: Make sure you include the GTM code in these pages as well. And then, check again.

  • Pages having GA & GTM at the same time

You need to select “contain” for both Google Analytics & Google Tag Manager, then export to Excel, put everything together and select “duplicated values” to get the list of pages having duplication issues.

– Next step if there´s something wrong: Remove one of them. If we are migrating from harcoded to GTM, then harcoded is the one that should be removed. And then, check again.

And you? How do you make sure your site is well tracked and every page is included just once?

Any idea? Any comment? Any complaint? Leave your comment and I will get back to you. You can also contact with me via email geekeandoenanalytics@gmail.com o through my Linkedin and Twitter profiles.

Google Analytics “is no longer collecting data”

The problem: Google Analytics has stopped collecting data TODAY.

This sentence normally goes together with something like “of course we have not made any change in the web” and / or “I see all tags being fired correctly”.

As we can see in the image below, Google Analytics does not show any data after 8:00 am (of the day I took this image)

1

The Solution, what is actually happening and how can we fix it?

First thing is to identify the kind of issue we are facing:

  • Google Analytics is not collecting data
    or
  • Google Analytics is not showing data

It may happen that Google Analytics doesn’t show any data, I have already seen this issue several times… Because it may happen that Google Analytics keeps collecting data, but doesn’t show the latest data, the data for today.

What can we do?

By just applying an advance segment (so we oblige Google Analytics “to think”) the data for today appear for the whole traffic and the segment applied.

2

If it´s an ecommerce, we can also check it there

3

As you can see in the image above, data is now there (not for the whole day obviously, because we are looking data for “today” but there is data till the time I took this screenshot). In other words, the moment we oblige Google Analytics to think, everything is right comes back to normality.

It´s also possible to take a look in Real Time and see if there is data there. The day after, you should check everything is ok again, and data are being showed as they are collected, as usual. In my case, it has always been like this.

However, if after applying a segment (making GA think) you still see the same lack of data, then we are facing another kind of problem, and we would need to audit the data collection (debug). I will talk about it in a next post.

Any idea? Any comment? Any complaint?   Leave your comment and I will get back to you. You can also contact with via email geekeandoenanalytics@gmail.com o through my Linkedin and Twitter profiles