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
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
c3d
c3dOP8mo ago
I see. I don't have a css class on my ahref links so i just need to track the url itself
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
Beto Garcia
Beto Garcia8mo ago
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"]
c3d
c3dOP8mo ago
Like this for all URLs containing /go/ ?
No description
Want results from more Discord servers?
Add your server