Google’s Tag Manager is a super useful tool, but, just like with Google Analytics and Ad Manager, it works best with types of things, not a set of specific things. For example, GA is great at finding the pageview count for every article that has custom dimension 2 = “true” but it’s not good at given the pageview count for a group of 10 random URLs are want to investigate.
This is particularly annoying when you are setting up very granular GTM triggers, but there is a simple work around. The same logic works in Google Analytics.
Sal May 20th, 2020
Posted In: Analytics
Tags: Google Analytics, Google Tag Manager, GTM
Google Tag Manager (GTM) has a lot of built-in variables, but the list is by no means complete. And what’s annoying about the built-in variables is that they are not fully customizable, so sometimes you need to build off of them. This can only be done by digging into GTM a little and writing some custom JavaScript.
One of these circumstances is when you want to store the query string parameter from a clicked URL. This is a slightly strange request because the UTM or query string parameter are generally for the downstream site, but you might want to store it nonetheless. This should be easy because:
… but if you want a param from a clicked URL? Time for a custom Javascript variable.
Sal June 21st, 2019
Posted In: Google Cloud Platform
Tags: Google Tag Manager
If you want to track clicks out of your site but you don’t own the page that is being linked to, it might not be immediately obvious how you can learn about your outgoing clicks. Some partners offer a conversion mechanism (a conversion pixel, callback, etc.) but many don’t. Plus not every click results in a conversion so keeping track of the people who are clicking out of your site can make a lot of sense. But how do you do it?
Don’t worry: tracking affiliate links clicks (or any other click on your site) is super easy and free.
Sal August 10th, 2018
Posted In: Web Development
Tags: Affiliate Marketing, Google Tag Manager, GTM