Tracking HTML links with Zaraz
How can i track clicks on ahref links for GA4 with Zaraz? I tried adding Click listner and XPath with the /link to track and also the event tag for GA4 but it doesnt seem to work
5 Replies
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
I see. I don't have a css class on my ahref links so i just need to track the url itself
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
Use css selector a[href="your link"]
or a[href^="start with"] using ˆ
or end with a[href$="ends with"]
or includes a[href*="has it"]
Like this for all URLs containing /go/ ?