On this page
In plain English
You choose an input variable, then list input values and the output each one should return. You can also set a default value for anything not in the table.
Lookup tables save you building lots of near-identical tags. If you need pattern matching rather than exact matches, the RegEx Table variable works the same way but accepts regular expressions.
Example
Input variable: {{Page Hostname}}.
www.example.comreturnsG-LIVE1234staging.example.comreturnsG-TEST5678
Your Google tag uses the lookup table instead of a fixed ID, so test traffic never ends up in the live GA4 property.
Official documentation
- User-defined variable types for web (opens in a new tab) Tag Manager Help
Last reviewed