Home >
Technical & Creative Skills >
Tracking Campaigns
JS redirect code that passes rel attribute? (1)
05-11-2015 03:03 AM
#1
lwpack (Member)
JS redirect code that passes rel attribute?
I've created a landing page that I plan to put up on a CDN. I'm using Thrive for tracking. I'll sleep better at night knowing that I'm not relying on cookies, so ideally I'd like to grab the value of the sxid query parameter (which is what Thrive names their unique tracking token) and append it to my outgoing link. This is easy to do in php, but since I'm on a CDN that's not an option. I can use Javascript to redirect the visitor, and Thrive provides the code, but I'd like to pass rel="noreferrer" and target="_blank" attributes, and therein lies the problem.
Just to be clear on what I want, if I were to use php code, the following is exactly what I'm looking for:
Code:
<a href="http://domain.com/path/out.php?sxid=<?php echo $_GET['sxid']; ?>" rel="noreferrer" target="_blank">Click Here</a>
Is there a way to do this in javascript?
Home >
Technical & Creative Skills >
Tracking Campaigns