-
Improving JavaScript Link Decoration for Cross-Domain Measurement on Unbounced Landing Pages
“Hey everyone, I’m having a bit of a pickle with my website landing pages. I’m using a service called Unbounced and I’ve noticed that they wrap the CTA buttons on my pages. The issue is that it makes the CTA button first go to an internal link, then redirects it to the final external link where I need it to go.
The problem here is Google’s Cross-domain Measurement. It decorates outbound clicks to specified domains with an ‘_gl’ parameter. But since the link is first redirecting internally, it loses the decoration when it ultimately redirects externally. Instead of the link ending up with my desired URL (example), it ends up as a simple URL without the ‘_gl’ parameter (example).
I found a couple of scripts online that I toyed around with, hoping they could fix this. But it’s possible they were intended for form submissions and not button clicks? I’m not well-versed in JavaScript, so I’m not sure if they’re applicable here.
I tried these codes (Example codes), but they weren’t functional in my case. I’m really stuck here, so any help would be greatly appreciated!
P.S. if you’re interested, here’s a link to one of the landing pages: (landing page).”
Log in to reply.