{"id":115678,"date":"2025-02-28T18:05:32","date_gmt":"2025-02-28T18:05:32","guid":{"rendered":"https:\/\/peraltafinancing.com\/analytics\/the-regex-table-variable-in-google-tag-manager\/"},"modified":"2025-02-28T18:05:32","modified_gmt":"2025-02-28T18:05:32","slug":"the-regex-table-variable-in-google-tag-manager","status":"publish","type":"post","link":"https:\/\/fivemor.com\/?p=115678","title":{"rendered":"The RegEx Table Variable In Google Tag Manager"},"content":{"rendered":"<p> <br \/>\n<\/p>\n<div>\n<p>Ever since the <a href=\"https:\/\/www.simoahava.com\/analytics\/google-tag-manager-lookup-table-macro\/\">Lookup Table variable was introduced<\/a> in <a href=\"https:\/\/tagmanager.google.com\/\">Google Tag Manager<\/a>, users have been craving for more. The Lookup Table does exactly what it promises: lookups. These are exact match operations, which are extremely inexpensive to perform, because they can only have a binary result: either the match exists in the data store being queried or it doesn\u2019t. This performance stays constant even if the data store being queried increases in size. However, exact match has one significant problem: it\u2019s <strong>exact<\/strong> match. Thus even though the Lookup Table variable is extremely useful, it\u2019s missing the flexibility of, I don\u2019t know, say, regular expressions. You will be pleased to hear, then, that Google Tag Manager has released a new variable type: the <strong>RegEx Table<\/strong>!<\/p>\n<div style=\"aspect-ratio: 1908 \/ 1204;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2017\/09\/regex-table-variable.jpg\" title=\"RegEx Table Variable\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"1204\" width=\"1908\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2017\/09\/regex-table-variable.jpg#ZgotmplZ\" alt=\"RegEx Table Variable\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>First of all, if you are unfamiliar with regular expressions, here are some great resources:<\/p>\n<p>Needless to say, RegEx is a powerful pattern-matching syntax to learn, and can help you enormously in keeping your Google Tag Manager container lean and mean.<\/p>\n<p>                <span class=\"simmer\"><br \/>\n  <span class=\"close\">X<\/span><\/p>\n<p>\n    <span class=\"fa fa-md fa-bell\"\/><br \/>\n    <strong>The Simmer Newsletter<\/strong>\n  <\/p>\n<p>\n    Subscribe to the <a href=\"https:\/\/www.simoahava.com\/newsletter\/\">Simmer newsletter<\/a> to get the latest news and content from Simo Ahava into your email inbox!\n  <\/p>\n<p>  <\/span><\/p>\n<h2 id=\"the-regex-table-variable\">The RegEx Table variable<\/h2>\n<p>You\u2019ll find the RegEx Table variable in the list of variable types you can create as a <strong>User-defined variable<\/strong>. Once you choose this variable type, you\u2019ll see the following configuration:<\/p>\n<div style=\"aspect-ratio: 1908 \/ 1204;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2017\/09\/regex-table.jpg\" title=\"RegEx Table\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"1204\" width=\"1908\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2017\/09\/regex-table.jpg#ZgotmplZ\" alt=\"RegEx Table\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>There are many similarities with the Lookup Table variable, for good reason, but there\u2019s also a bunch of settings that turn this new variable into a formidable force in its own right.<\/p>\n<h3 id=\"1-input-variable\">1. Input variable<\/h3>\n<p>The <strong>Input variable<\/strong> shares its functionality with the Lookup Table. The input variable is what you\u2019ll be making your pattern checks <strong>against<\/strong>. For example, if you want to use the RegEx table to look for patterns in the current page path, you\u2019d choose the <strong>{{Page Path}}<\/strong> variable as the input.<\/p>\n<div style=\"aspect-ratio: 311 \/ 150;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2017\/08\/page-path.jpg\" title=\"Input variable in the regex table\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"150\" width=\"311\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2017\/08\/page-path.jpg#ZgotmplZ\" alt=\"Input variable in the regex table\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>The input variable is evaluated row-by-row, from top-to-bottom, against each pattern. When a pattern matches, the respective output is returned and processing of the table stops.<\/p>\n<h3 id=\"2-regex-table\">2. RegEx Table<\/h3>\n<p>Next, you have the table itself. In the table, you add rows, where each row represents a <strong>pattern<\/strong> you want to match in the input, and an <strong>output<\/strong> returned by the variable in case the pattern matches.<\/p>\n<p>The <strong>pattern<\/strong> is always interpreted as a regular expression. All the following patterns are valid examples:<\/p>\n<ul>\n<li>\n<p><code>simoahava.com<\/code> &#8211; will match \u201csimoahava  com\u201d<\/p>\n<\/li>\n<li>\n<p><code>simoahava\\.com<\/code> &#8211; will match \u201csimoahava.com\u201d.<\/p>\n<\/li>\n<li>\n<p><code>^simoahava\\.com$<\/code> &#8211; will match exactly \u201csimoahava.com\u201d (won\u2019t allow leading or trailing characters).<\/p>\n<\/li>\n<li>\n<p><code>(simoahava)\\.com<\/code> &#8211; will match \u201csimoahava.com\u201d and create a group (see below) of \u201csimoahava\u201d.<\/p>\n<\/li>\n<\/ul>\n<p>A pattern like <code>[simoahava\\.com<\/code> is not a valid regular expression, because \u201c[\u201d is a reserved character, and it is being incorrectly used in this pattern. Google Tag Manager will not warn you of errors in the regular expression, but you\u2019ll know something is wrong if the <strong>Preview mode output<\/strong> for the variable is boolean <code>false<\/code>. Conversely, if no match is made or there is no output for a matched pattern, the variable will return <code>undefined<\/code>.<\/p>\n<p>The <strong>output<\/strong> is what the variable returns when a row is matched against the input. The return type is a string, unless you add another variable into the output. This is a great way to <strong>chain RegEx Table variables<\/strong>, just as you could <a href=\"https:\/\/www.simoahava.com\/gtm-tips\/chain-macros-lookup-tables\/\">chain Lookup Table variables<\/a>.<\/p>\n<p>For example, here\u2019s a simple chain of a RegEx Table and a Lookup Table:<\/p>\n<div style=\"aspect-ratio: 1594 \/ 1780;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2017\/09\/regex-lookup-chain.jpg\" title=\"Regex Table Lookup Table Variable Chain\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"1780\" width=\"1594\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2017\/09\/regex-lookup-chain.jpg#ZgotmplZ\" alt=\"Regex Table Lookup Table Variable Chain\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>And here\u2019s how to unravel the process:<\/p>\n<ol>\n<li>\n<p>If the page hostname matches the pattern <code>beta\\.simoahava\\.com<\/code>, then return \u201cUA-12345-1\u201d.<\/p>\n<\/li>\n<li>\n<p>If the page hostname doesn\u2019t match either <code>beta\\.simoahava\\.com<\/code> or <code>\\.simoahava\\.com<\/code>, also return \u201cUA-12345-1\u201d (Default Value of the RegEx table).<\/p>\n<\/li>\n<li>\n<p>If the page hostname matches <code>\\.simoahava\\.com<\/code> and the user is in Debug Mode, return \u201cUA-12345-2\u201d.<\/p>\n<\/li>\n<li>\n<p>If the page hostname matches <code>\\.simoahava\\.com<\/code> and the user is not in Debug Mode, return \u201cUA-12345-3\u201d.<\/p>\n<\/li>\n<\/ol>\n<p>As you can see, the RegEx Table returns the <strong>first match<\/strong> that is made. Thus even though <code>beta\\.simoahava\\.com<\/code> and <code>\\.simoahava\\.com<\/code> overlap for any hostname that contains the string \u201cbeta.simoahava.com\u201d, the RegEx table returns \u201cUA-12345-1\u201d, because that is the first match that the variable makes.<\/p>\n<h3 id=\"3-set-default-value\">3. Set Default Value<\/h3>\n<p>As with Lookup Tables, you can set a Default Value that is always returned in case <strong>no match is made<\/strong>. Just like pattern outputs, this can be another Google Tag Manager variable.<\/p>\n<h3 id=\"4-ignore-case\">4. Ignore Case<\/h3>\n<p>If you check <strong>Ignore Case<\/strong>, patterns are matched regardless of case. So a pattern with <code>WwW\\.SiMOAHava\\.com<\/code> will match against the domain of my site, as long as <strong>Ignore Case<\/strong> is checked.<\/p>\n<p>Ignore Case is checked by default.<\/p>\n<h3 id=\"5-full-matches-only\">5. Full Matches Only<\/h3>\n<p>If you check <strong>Full Matches Only<\/strong>, then all patterns must match the entire input. This is the equivalent of wrapping each individual pattern with <code>^...$<\/code>.<\/p>\n<p>For example, if you have <strong>Full Matches Only<\/strong> checked, and you have a pattern of <code>www\\.simoahava\\.com<\/code>, then the input variable must return exactly <code>www.simoahava.com<\/code>, without any other characters. If you\u2019d have the setting unchecked, then <code>www\\.simoahava\\.com<\/code> would also match any of the following:<\/p>\n<p>And so forth.<\/p>\n<p>Full Matches Only is checked by default.<\/p>\n<h3 id=\"6-enable-capture-groups-and-replace-functionality\">6. Enable Capture Groups and Replace Functionality<\/h3>\n<p>This is interesting! In addition to matching the input against a pattern and returning a corresponding output, you can actually use parts of the matched pattern <strong>within<\/strong> the returned output. This is achieved with <strong>capturing groups<\/strong> and the <strong>dollar symbol syntax<\/strong>.<\/p>\n<p>A group (<em>capturing<\/em> and <em>non-capturing<\/em>) in RegEx is a pattern that you define with parentheses. Most groups can then be captured using the dollar symbol syntax when using the <code>String.replace()<\/code> method or, consequently, the Enable Capture Groups and Replace Functionality feature of GTM\u2019s RegEx table. Here are the options for the dollar symbol syntax:<\/p>\n<ul>\n<li>\n<p><code>$$<\/code> inserts a \u2018$\u2019.<\/p>\n<\/li>\n<li>\n<p><code>$&amp;<\/code> inserts the matched pattern.<\/p>\n<\/li>\n<li>\n<p><code>$` <\/code> inserts whatever precedes the matched pattern in the string.<\/p>\n<\/li>\n<li>\n<p><code>$'<\/code> inserts whatever follows the matched pattern in the string.<\/p>\n<\/li>\n<li>\n<p><code>$n<\/code> inserts the _n_th capturing group.<\/p>\n<\/li>\n<\/ul>\n<p>These all have their uses, but the last one, <code>$n<\/code> should prove to be the most useful. You can use it to normalize patterns across a range of values. For example, let\u2019s say you have a variable which stores the user\u2019s phone number in the following formats:<\/p>\n<ol>\n<li>\n<p>358101001000<\/p>\n<\/li>\n<li>\n<p>0101001000<\/p>\n<\/li>\n<li>\n<p>010-1001000<\/p>\n<\/li>\n<li>\n<p>010 100 1000<\/p>\n<\/li>\n<li>\n<p>+358101001000<\/p>\n<\/li>\n<\/ol>\n<p>You want to normalize all of these to the last format (+358101001000) whenever the phone number variable is used. This is how you\u2019d configure the RegEx table:<\/p>\n<div style=\"aspect-ratio: 1780 \/ 1370;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2017\/09\/enable-capture-groups-and-replace-functionality.jpg\" title=\"Enable Capture Groups and REplace Functionality\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"1370\" width=\"1780\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2017\/09\/enable-capture-groups-and-replace-functionality.jpg#ZgotmplZ\" alt=\"Enable Capture Groups and REplace Functionality\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>The <strong>first<\/strong> pattern looks for strings that start with \u2018358\u2019 followed by any numbers. This pattern is simply replaced with the plus symbol followed by the pattern itself.<\/p>\n<p>The <strong>second<\/strong> pattern looks for a string of numbers preceded by a \u20180\u2019. The output is \u2018+358\u2019 and the string of numbers, omitting the leading \u20180\u2019.<\/p>\n<p>The <strong>third<\/strong> pattern looks for a string of numbers preceded by a \u20180\u2019, then a hyphen, and then a string of numbers again. The output is \u2018+358\u2019 and then the two strings of numbers, omitting the leading \u20180\u2019 and the hyphen.<\/p>\n<p>The <strong>fourth<\/strong> pattern looks for a string of numbers preceded by a \u20180\u2019, then a space, then another string of numbers, a space, and finally one more group of numbers. The output is \u2018+358\u2019 and the three groups of numbers, omitting the leading \u20180\u2019 and the spaces.<\/p>\n<p>The <strong>final<\/strong> pattern checks if the phone number is already well-formed, returning the pattern itself if this is the case.<\/p>\n<p>Using the RegEx Table like this, we can create simple string transformations which help normalize and clean up data across a variety of formats. As you can see, <strong>Full Matches Only<\/strong> is checked in this example. That means we don\u2019t have to worry about anything that happens outside the matched pattern, since only full matches to the pattern are transformed.<\/p>\n<p>If you leave <strong>Full Matches Only<\/strong> unchecked, then <strong>Enable Capture Groups and Replace Functionality<\/strong> will replace all matches of the pattern found within the Input Variable with what you have in the Output. For example, if you have a RegEx Table variable that looks like this:<\/p>\n<div style=\"aspect-ratio: 1772 \/ 1070;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2017\/09\/replace-pattern-with-output.jpg\" title=\"Replace pattern match with output\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"1070\" width=\"1772\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2017\/09\/replace-pattern-with-output.jpg#ZgotmplZ\" alt=\"Replace pattern match with output\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>Then whenever the string \u201canalytics\u201d is found within a page path, it will be replaced with \u201cgoogle-analytics\u201d.<\/p>\n<p>Here is an example:<\/p>\n<p><code>\/analytics\/track-users-who-are-offline-in-google-analytics\/<\/code> becomes <code>\/google-analytics\/track-users-who-are-offline-in-google-google-analytics\/<\/code>.<\/p>\n<p>Note that the example above only works if <strong>Full Matches Only<\/strong> is unchecked. Otherwise the variable would only replace page paths which are <strong>exactly<\/strong> <code>analytics<\/code>, and page paths like that do not exist.<\/p>\n<p>The little help bubble actually recommends to avoid combining this pattern replacement with unchecked Full Matches Only. This is because there\u2019s no validation of the input variable, and you might end up replacing things that you didn\u2019t mean to!<\/p>\n<p>Enable Capture Groups and Replace Functionality is checked by default.<\/p>\n<h2 id=\"summary\">Summary<\/h2>\n<p>That\u2019s the RegEx Table in all its simple glory! I know it will make some operations so much simpler. You no longer need to use clumsy Custom JavaScript variables to perform your pattern matches, since the RegEx Table has that built into its modus operandi.<\/p>\n<p>The option to replace any matches with custom strings (in which you can incorporate parts of the match using groups) is pretty powerful, too.<\/p>\n<p>All in all, this is a very welcome addition to Google Tag Manager\u2019s variable offering. It remains to be seen if the Lookup Table still has a place in the table after this, because with the RegEx table you can do exact match lookups, too. The difference is perhaps in the syntax (with Lookup Tables you don\u2019t need to use regular expressions) and performance (lookups will always perform much faster than regular expression matches), though the latter might be very insignificant in the context of a web page.<\/p>\n<\/p><\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>Ever since the Lookup Table variable was introduced in Google Tag Manager, users have been craving for more. The Lookup Table does exactly what it promises: lookups. These are exact match operations, which are extremely inexpensive to perform, because they can only have a binary result: either the match exists in the data store being [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":115681,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12033],"tags":[1531,14495,50461,893,1791,15112],"dealstore":[],"offerexpiration":[],"class_list":["post-115678","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-analytics","tag-google","tag-manager","tag-regex","tag-table","tag-tag","tag-variable"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>The RegEx Table Variable In Google Tag Manager - Som2ny Network<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/fivemor.com\/?p=115678\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The RegEx Table Variable In Google Tag Manager - Som2ny Network\" \/>\n<meta property=\"og:description\" content=\"Ever since the Lookup Table variable was introduced in Google Tag Manager, users have been craving for more. The Lookup Table does exactly what it promises: lookups. These are exact match operations, which are extremely inexpensive to perform, because they can only have a binary result: either the match exists in the data store being [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fivemor.com\/?p=115678\" \/>\n<meta property=\"og:site_name\" content=\"Som2ny Network\" \/>\n<meta property=\"article:published_time\" content=\"2025-02-28T18:05:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/regex-table-variable.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1908\" \/>\n\t<meta property=\"og:image:height\" content=\"1204\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fivemor.com\/?p=115678#article\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/?p=115678\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371\"},\"headline\":\"The RegEx Table Variable In Google Tag Manager\",\"datePublished\":\"2025-02-28T18:05:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=115678\"},\"wordCount\":1573,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/fivemor.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=115678#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/regex-table-variable.jpg\",\"keywords\":[\"Google\",\"Manager\",\"Regex\",\"Table\",\"TAG\",\"variable\"],\"articleSection\":[\"Analytics\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fivemor.com\/?p=115678#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fivemor.com\/?p=115678\",\"url\":\"https:\/\/fivemor.com\/?p=115678\",\"name\":\"The RegEx Table Variable In Google Tag Manager - Som2ny Network\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=115678#primaryimage\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=115678#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/regex-table-variable.jpg\",\"datePublished\":\"2025-02-28T18:05:32+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/fivemor.com\/?p=115678#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fivemor.com\/?p=115678\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/?p=115678#primaryimage\",\"url\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/regex-table-variable.jpg\",\"contentUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/regex-table-variable.jpg\",\"width\":1908,\"height\":1204},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fivemor.com\/?p=115678#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/fivemor.com\/?bp_activities=1\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The RegEx Table Variable In Google Tag Manager\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/fivemor.com\/#website\",\"url\":\"https:\/\/fivemor.com\/\",\"name\":\"Som2ny Network\",\"description\":\"Daily Deals\",\"publisher\":{\"@id\":\"https:\/\/fivemor.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/fivemor.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/fivemor.com\/#organization\",\"name\":\"Som2ny Network\",\"url\":\"https:\/\/fivemor.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png\",\"contentUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png\",\"width\":300,\"height\":86,\"caption\":\"Som2ny Network\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/fivemor.com\"],\"url\":\"https:\/\/fivemor.com\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The RegEx Table Variable In Google Tag Manager - Som2ny Network","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/fivemor.com\/?p=115678","og_locale":"en_US","og_type":"article","og_title":"The RegEx Table Variable In Google Tag Manager - Som2ny Network","og_description":"Ever since the Lookup Table variable was introduced in Google Tag Manager, users have been craving for more. The Lookup Table does exactly what it promises: lookups. These are exact match operations, which are extremely inexpensive to perform, because they can only have a binary result: either the match exists in the data store being [&hellip;]","og_url":"https:\/\/fivemor.com\/?p=115678","og_site_name":"Som2ny Network","article_published_time":"2025-02-28T18:05:32+00:00","og_image":[{"width":1908,"height":1204,"url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/regex-table-variable.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fivemor.com\/?p=115678#article","isPartOf":{"@id":"https:\/\/fivemor.com\/?p=115678"},"author":{"name":"admin","@id":"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371"},"headline":"The RegEx Table Variable In Google Tag Manager","datePublished":"2025-02-28T18:05:32+00:00","mainEntityOfPage":{"@id":"https:\/\/fivemor.com\/?p=115678"},"wordCount":1573,"commentCount":0,"publisher":{"@id":"https:\/\/fivemor.com\/#organization"},"image":{"@id":"https:\/\/fivemor.com\/?p=115678#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/regex-table-variable.jpg","keywords":["Google","Manager","Regex","Table","TAG","variable"],"articleSection":["Analytics"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fivemor.com\/?p=115678#respond"]}]},{"@type":"WebPage","@id":"https:\/\/fivemor.com\/?p=115678","url":"https:\/\/fivemor.com\/?p=115678","name":"The RegEx Table Variable In Google Tag Manager - Som2ny Network","isPartOf":{"@id":"https:\/\/fivemor.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/fivemor.com\/?p=115678#primaryimage"},"image":{"@id":"https:\/\/fivemor.com\/?p=115678#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/regex-table-variable.jpg","datePublished":"2025-02-28T18:05:32+00:00","breadcrumb":{"@id":"https:\/\/fivemor.com\/?p=115678#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fivemor.com\/?p=115678"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/?p=115678#primaryimage","url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/regex-table-variable.jpg","contentUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/regex-table-variable.jpg","width":1908,"height":1204},{"@type":"BreadcrumbList","@id":"https:\/\/fivemor.com\/?p=115678#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/fivemor.com\/?bp_activities=1"},{"@type":"ListItem","position":2,"name":"The RegEx Table Variable In Google Tag Manager"}]},{"@type":"WebSite","@id":"https:\/\/fivemor.com\/#website","url":"https:\/\/fivemor.com\/","name":"Som2ny Network","description":"Daily Deals","publisher":{"@id":"https:\/\/fivemor.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/fivemor.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/fivemor.com\/#organization","name":"Som2ny Network","url":"https:\/\/fivemor.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/#\/schema\/logo\/image\/","url":"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png","contentUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png","width":300,"height":86,"caption":"Som2ny Network"},"image":{"@id":"https:\/\/fivemor.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png","caption":"admin"},"sameAs":["https:\/\/fivemor.com"],"url":"https:\/\/fivemor.com\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts\/115678","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=115678"}],"version-history":[{"count":0,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts\/115678\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/media\/115681"}],"wp:attachment":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=115678"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=115678"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=115678"},{"taxonomy":"dealstore","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdealstore&post=115678"},{"taxonomy":"offerexpiration","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fofferexpiration&post=115678"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}