Category: Guides

  • Multi-Column Regex Lookup Variable for Google Tag Manager

    One of the strongest (and there are plenty!) variable types in Google Tag Manager is the RegEx Lookup Table (technically “RegEx Table”). It allows you to look up an output value based on a regex search in an input variable, and makes structuring unstructured data much easier.

    If you have never worked with RegEx Table variables, I urge you to start thinking it into your way of working. Yes, they are that good.

    But one of the flaws (or maybe limitations is a more fair definition) is the lack of ability to create a multicolumn matrix-sort of variable. Which comes especially much in handy when the setup you are building involves lots of values in different variables. Having all that information collected in one table, and look up a specific value in a specific cell, based on an x and a y coordinate, can make complex datasets easy(-ier) to navigate and maintain.

    Let us do an example case and try to build it out, rather than going down the theroretical road.

    (more…)
  • Tracking Hubspot Meetings Scheduler events (iframe) via GTM

    Tracking iframed content via a Google Tag Manager container on the parent page, can be notoriously difficult. Not because of Google Tag Manager, mind you, but because iframes is The Devil’s Work™️.

    Luckily there’s a solution, when trying to tie Hubspot’s Meetings Scheduler form and your tracking tool of choice together, and your best friend here is the standard window.postMessage method, which can solve the problem for you.

    (more…)