James Bachini

Loading a conversion pixel on click through

Mobile campaign optimisation throws up a number of issues in regard to tracking. One thing I’ve found really useful is to load a conversion pixel on click through from the landing page to the offer page. This can be a traffic source pixel which can then be used to give some indication of site/device/carrier quality etc. It’ll be tracking click throughs rather than conversions so it’s not perfect but it does make for cheap fast optimisations. Bare in mind this will only work with javascript enabled browsers.

Heres the code for your out links:

<a href="http://www.cpanetwork.com/trackinglink.php" onmousedown="new Image().src='http://www.trafficsource.com/conversionpixel.php'">Click Here</a>

So the image is loaded via javascript as soon as the link is clicked.

Update:
I changed the onclick to onmousedown because this give the page a little more time to load the pixel and makes it more reliable in my experience.


Get The Blockchain Sector Newsletter, binge the YouTube channel and connect with me on Twitter

The Blockchain Sector newsletter goes out a few times a month when there is breaking news or interesting developments to discuss. All the content I produce is free, if you’d like to help please share this content on social media.

Thank you.

James Bachini

Disclaimer: Not a financial advisor, not financial advice. The content I create is to document my journey and for educational and entertainment purposes only. It is not under any circumstances investment advice. I am not an investment or trading professional and am learning myself while still making plenty of mistakes along the way. Any code published is experimental and not production ready to be used for financial transactions. Do your own research and do not play with funds you do not want to lose.


Posted

in

,

by