Google Analytics

Detect and track iPhone models in Google Analytics

. Posted in: Data Collection
Tags: Customization, Google Analytics, Google Tag Manager

Updated November 20th, 2018. I updated the script to support newer iPhone models up to the iPhone XR and XS Max. Also rewrote the script to make it easier to maintain. Ever since the iPhone 4 came out, I’ve been a bit annoyed with the way mobile (Apple) devices are tracked in Google Analytics. While we get plenty of device information for other brands, Apple has (perhaps intentionally) made it difficult to detect and track iPhone models. Read more →

Track Internal Links with Google Analytics and GTM

. Posted in: Data Collection
Tags: Google Analytics, Google Tag Manager

Do not use UTM tracking codes on internal links! I just wanted to get that out the way. And if you don’t read anything else in this post, that should be your main takeaway. But if you would like to know how to properly track internal links with Google Analytics, then read on! Why track internal links? Well, first: What are internal links? Internal links are just that. They are links on your website that point to other pages on your website. Read more →

Chrome Extensions for Google Analytics & Google Tag Manager

. Posted in: Inspiration
Tags: Google Analytics, Google Tag Manager, Reading List, Tools

Implementation and auditing of Google Analytics and Google Tag Manager is essential when working with web analytics. After all, what good are reporting and analytics if you can’t trust your data? Usually, when setting up GTM and Analytics on a website, you’ll find yourself checking source code for the correct dataLayer or using real-time reports to see if data comes in. But Chrome Extensions for Google Analytics and Tag Manager makes it much easier. Read more →

What are Users and Sessions in Google Analytics?

. Posted in: Data Analysis
Tags: Glossary, Google Analytics

I do Google Analytics training sessions very often, and often for non-analysts. One of the questions that pop up most often is something that might seem basic for full time web analysts. Namely, just what are Users and Sessions? And what is the difference between Users and Sessions in Google Analytics? What do those metrics mean and how do Google Analytics track and count Users and Sessions? Many people think Users are the same thing as people. Read more →

How to use the (UTM) Campaign URL Builder

. Posted in: Data Collection
Tags: Google Analytics

The Campaign URL Builder for Google Analytics is a free tool. It lets you build URLs by appending certain parameters to your existing landing page URLs. In turn, this lets you track inbound traffic from marketing campaigns in Google Analytics on a detailed level. Ultimately, you’re better equipped to analyse the performance of campaigns. And you’re able to do so on a per marketing channel basis. Let’s say you’re running a Winter 2016 Sale. Read more →

Fix Duplicate Ecommerce Transactions in Google Analytics

. Posted in: Data Quality
Tags: Google Analytics, Troubleshooting

A relatively common issue with ecommerce tracking in Google Analytics is that transactions are often counted more than once. This is not really caused by an error in Google Analytics. Rather it’s a problem in the ecommerce platforms and the tracking implementations. For the most part, Google Analytics will trust that you send valid and correct data. So it doesn’t try to correct anything. But just like it’s possible (but not allowed) to log PII (Personally Identifiable Information) in Analytics such as email addresses, it’s also possible to log the same transaction multiple times. Read more →

How to find Dead Pages in Google Analytics

. Posted in: Data Analysis
Tags: Excel, Google Analytics

Once in a while, I need to identify so-called dead pages on a website - that is, pages with no pageviews. Usually, this is necessary when migrating a website to a new CMS. In that case, it’s useful to know if there are pages that can be safely deleted/omitted (just remember proper redirects). A similar use case is when cleaning up a website in order to remove unnecessary content. However, since Google Analytics only track pages that are visited, it’s not possible to find dead pages in Google Analytics alone since those pages will not show up in any reports. Read more →

Track Real Time on Page for Bounces and Exits with GTM

. Posted in: Data Collection, Data Quality
Tags: Google Analytics, Google Tag Manager

The Time on Page metric is probably one of the most misunderstood metrics in Google Analytics. Google Analytics measures the time on page for each page, but can only do so by measuring the elapsed time between two interactions. The first interaction is the timestamp of the initial pageview, and the second interaction is usually the timestamp for the next pageview (or an event). So for sessions with just one pageview (i. Read more →

Which Ad Blockers are blocking Google Analytics?

. Posted in: Data Collection, Data Quality
Tags: Discussions, Google Analytics

This article/survey is from 2016. Please note that blocking or hindering of Google Analytics, one way or the other, is even more widespread now. This is still due to ad blockers, but also due to browser technologies such as ITP and ETP implemented by Safari and Firefox. Ad blocking software has gotten a lot of attention recently. Not because it’s new, but likely because it’s being used more widely. Studies put the ad block penetration at up to 37% or even higher - it depends on country and other factors. Read more →

Track Anything in Google Analytics with Event Listeners

. Posted in: Data Collection, Inspiration
Tags: Google Analytics

There is one thing I hear a lot when I’m giving talks about Google Analytics: “I didn’t know Google Analytics could track that!”. Put another way, I just as often get a question like “Could you make Google Analytics track [insert anything here]?”. The short answer is always, “Yes, you can track that in Google Analytics”. Basically, you can track anything that goes on inside a browser. If it happens within a browser (a mouse click, a keyboard key click, a mouse movement, scrolling) you can track it. Read more →