Custom GTM Trigger on HTML Element Impression

So, you track interactions with some element and you calculate the engagement with that element based on interactions/pageviews? If the element you track is below the fold you are doing it wrong! The right way to do it is tracking the engagement based on real impressions (the times the element was actually visible).

It sounds scary and complicated to setup this, but in reality all you need is Google Tag …

Continue Reading

GTM Trigger for X days after the first user visit

What if you need a trigger that checks if X days passed since the first visit of your returning visitor? It’s very specific trigger, but it could be used in a lot of situations (triggering surveys or polls for returning visitors, triggering discount codes, using it in custom remarketing lists, etc…).

On first sight it seems impossible to create such a trigger (Yes, GA has this information, but there is …

Continue Reading

Track Browsing Paths with GTM and GA – The Quick & Dirty Solution

The User Flow in Google Analytics is a great visualization tool for checking the most used browsing paths in your website. However it has it’s flaws – it’s sometimes hard to read and the export options are not good for data analyzes in 3rd party tools (actually the export is available just in PDF).

So… how to start collecting this data in a way that it’s easy to read and …

Continue Reading

Add Timestamp to all of your GA Events

Often there are situations where you are checking some user events and are wondering how to check which one was first, which was the next one, which was the last. Although there are several options to do that – they are all too clumsy to use them on regular basis (for example – using the GA User Explorer or even the worst option – using 3 extra dimensions in custom …

Continue Reading

Send GA Client ID as custom dimension with GTM

There are many reasons why you would want the GA client ID collected.  Let’s just say getting the value of the GA cookie gives you a lot of options for extra reports and extra info. In the future I’ll use the GA client ID for some fancy stuff, so you’ll see some practical uses of collecting it.

For the moment let’s keep to the point!

First – let’s start with …

Continue Reading

Scroll Tracking with Google Tag Manager

Almost a year ago LunaMetrics posted a great scroll tracking script for Google Analytics. I won’t get into details why to implement this tracking and what are the benefits from it (you can read that in the original LunaMetrics article). Instead I’ll show you how to implement this scroll tracking with Google Tag Manager step by step.

First – we start with an HTML tag, containing the JavaScript for the …

Continue Reading