GTM Hack – Combining Lookup Tables in GTM to Serve the Right GA ID

Today I’ll share a cool way to combine multiples lookup tables to serve more complex “look up problems”, namely one with more than one type of input. Of course, any lookup table can map 10 hostnames to their Google Analytics ID, but we can’t map a combination of hostnames AND environment names to the right ID. I’ll explain the use case in detail further down. Basic Look Up Tables A lookup table is a great variable you can use in Google Tag Manager to basically map inputs to outputs. But really, it’s just a table. One simple way to use […]

GTM Hack – Combining Lookup Tables in GTM to Serve the Right GA ID Read More