Cloud Confusing

Explaining hosting, AWS, Wordpress, static sites, and all manner of cloud solutions.

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:

  • GTM lets you easily store a query string parameter of the URL of the page you are on.
  • GTM also makes it easy to store the full URL of the destination page of a URL that get clicked.

… but if you want a param from a clicked URL? Time for a custom Javascript variable.

(more…)

June 21st, 2019

Posted In: Google Cloud Platform

Tags:

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.

(more…)

August 10th, 2018

Posted In: Web Development

Tags: , ,