: Google Tag Manager - matching dataLayer Variables using regex A number of pages on the site have a custom field that contains a word or a phrase (industry market segment) that get displayed
A number of pages on the site have a custom field that contains a word or a phrase (industry market segment) that get displayed in my dataLayer. I am then using that market segment variable to trigger a dynamic/custom fly-in box on those pages using Google Tag Manager.
I am having trouble getting these triggered using only one trigger filter. I have tried setting the filter to this using regex or statement:
Fire On Some Pages -> {{DataLayer Variable}} -> Match RegEx -> Market Segment 1|Market Segment 2
Edit - Here are the screenshots of the tag, trigger and variable:
Tag - Text in the Fly Box is populated via variables using the look up table
Trigger
Variable that catches the Market Segment from the site
One Example of a varible that uses the one above to populate the text dynamicly based on market segment.
The tag is not firing. Am I using the wrong regex or is there another way to do it. I have about 12 market segments and really don't want to create separate triggers for each one. Kind of defeats the point of using GTM.
More posts by @Odierno851
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.