Preparing tool...
Preparing tool...
A sequence of symbols and characters expressing a string or pattern to be searched for within a longer piece of text.
Regular expressions (RegEx) are a programmatic superpower used extensively within Google Analytics and GTM to filter data or trigger tags without writing highly repetitive rules.
For example, if you want a GTM tag to fire on your /shoes/ page, your /boots/ page, and your /socks/ page, you don't need to create three separate triggers. You can use one RegEx trigger matching the path: (shoes|boots|socks).
RegEx is prone to human error, which is why utilizing testing tools (like our Regex Tester) is highly recommended before deploying rules to production environments.
Stop guessing. Get a free audit of your exact setup, then let your 24/7 web analyst keep watching every night.