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…)