Wednesday, August 16, 2017
Home Code

Code

A place for code php, ruby, javascript, jquery, html, css etc.

Direct Linking and Retargeting

Here is how to do it, you'll still need a server and a domain. Point all your traffic towards a php file i.e. http://www.mydomain.com/trackandforward.php Then place all your retargeting pixels in to...

Automatic backup of MySQL database

Would you like to have a backup of your critical MySQL database emailed to you automatically? The following script was moified from backup2mail and needs setting up as a cron job, instructions...

Stupidly Simple AB or Multivariate Testing

Here's a simple way you can setup a simple multivariate or A/B split test without any software just using the subid variables provided by an affiliate network and some really basic...

Redirection Methods and Referer Passing

The following are some methods you can use to redirect users from one place to another. I generally use 301 redirects for anything where I want the referer passed through because...

Combining Maxmind GeoIP with Google Maps iFrame

This is a quick script which uses Maxminds geoip location db downloadable for free from here with Google Maps iFrame. I haven't tested this enough to find out if Google restrict...

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...

iframe to a specific div id on a landing page

Below is the code to iframe an offer page but cut out all the stuff you don't need. This is useful if you just want to iframe the form while using...

Mobile Multivariate Testing with SubID’s

Due to slow page load speeds it is advised to keep tracking software to minimum when running mobile campaigns. This caused me a problem when trying to develop and optimise a...

Prosper202 Mod – Set preferences before crashing server

Had a bit of an issue with Prosper crashing once the database got too big. I would log out and leave the analysis preferences set to my biggest traffic source and...

What was that Country Code?

Have problems remembering all the different country codes for geolocation scripts etc? Switzerland gets me everytime! Here's a handy list you can use to check before you code. I use Maxmind...