looking for a on click script. for example… if someone clicks play on a youtube video on my LP I want it to popunder the offer or open a tab of the offer. I cant seem to find the proper code I want to do this of if this is even possible.
Hey Ian,
Here is something similar (maybe even better):
<a onclick="launchpopLink()" target="_blank" href="http://track.outgoinglink.com/click/1">Accept!</a>
<script>
var isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0;
function launchpopLink() {
url = "http://track.outgoinglink.com/click/2";
document.location.assign(url);
if (isSafari) {
window.open('http://track.outgoinglink.com/click/1', '_blank');
}
return false;
}
</script>
thanks.. interesting. the popup is teh first visible page then the users sees then? mobile friendly as well?
This is for mobile, not tested on Desktop.
1. visitor lands on your LP
2. he clicks on CTA (Accept)
3. New window opens with Offer
4. Your LP (from step 1) redirects to another Offer
(this is for multi offer landing page, but it doesn't really matter where you send them)
I recommend test it out, play with it on your phone first maybe.
Funny thing is that the results may be not always the best (ie. the idea that more offers and pages opened = more $$$ is not always true).