I want to fire my CPVLab tracking pixel when someone clicks on the download button on my landing page (rather than on the actual Installation Successful page).
Since my CPV lab tracking pixel is an image tag:
<img src="http://domain.com/adclick.php" width="1" height="1" border="0" />
Am I right in thinking I that I’d have to create some Javascript function that I’ll call with an onClick when someone clicks the download button?? Or is there another way?
Thanks
You can do this by putting the conversion pixel on your redirect for your dl. It isn't possible with php redirects though, the js redirect below works (save as .htm/.html):
Download Redirect:
<html>
<head>
<script type="text/javascript">
<!--
function delayer(){
window.location = "http://www.js-redirect-to-your-download.com"
}
//-->
</script>
</head>
<body onLoad="setTimeout('delayer()', 5000)">
<h2>Prepare to be redirected!</h2>
<p>Downloading not-adware.exe in 5 seconds...</p>
<!-- CONVERSION PIXEL GOES HERE -->
</body>
</html>
<!-- only users with javascript ENABLED will see this content -->
<script type="text/javascript">
document.write('<a href="http://js-enabled-redirect.com"><input type="button" value="JS ENABLED DOWNLOAD LINK"></a>');
</script>
<!-- only users with javascript DISABLED will see this content -->
<noscript>
<a href="http://js-disabled-redirect.com"><input type="button" value="JS DISABLED DOWNLOAD LINK"></a>
</noscript>