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

Landing Page Trigger for Google Tag Manager

I was asked more often than you can imagine the following question: “How to create GTM trigger, that fires only in the Landing page, without firing on the next pages”. There are tons of cases when you may need a tag to fire just on the first visited page, and there is simple solution to that, although it seems it’s not as obvious as you may think.

This is the …

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

Separate Your Debug Traffic with A Lookup Table

When you start using GTM for the first time you may not need this, but with time you’ll start implementing more and more events, do more testing and debugging, and this will seriously disrupt your data. While this is easily fixed if you just filter your traffic in GA – it’s always better to have a backup plan. Another reason to use a separate property for your testing is to …

Continue Reading