I am trying to force the Page Tracking on my site (see: Link).What I am
hoping to achieve is prepend the market name to the URI which I can pull
out of my site's dataLayer (variable = dataLayer.language and thus the
new Page Path:
/en/pagepath1/pagepath2.I've created a script below to define this.There
is a small complication here in that some of the pages already have the
country/language variation passed in the URL so I have a r...
I'm trying to fire a Google GTAG script only on certain language
variations of our site, I can't create a condition to fire this in our
Tag Manager as it will impact other tags and pixels firing on the page
rule.I wan't the tag to fire only on certain language variations:
'^/(at|cn|cz|de|dk|en|eu|fr|it|nl|no|pl|pt|pt-br|se)/)'I'm trying to
achieve this by using match method with Regex but I am getting a syntax
error that I can't figure out on the below script: "Uncaught
SyntaxError: Unexpected t...