James Bachini

Tracking

  • Progressive Optimisation

    Progressive Optimisation

    When looking at conversion rate statistics for a new traffic source it is important to use progressive optimisation to block non-converting sources as early and efficiently as possible. The first step is to work out what conversion rate is required and then put a progressive funnel in place to build up to it. So if […]

  • Capitalisation of Links (www.MySite.com) CRO Test

    Capitalisation of Links (www.MySite.com) CRO Test

    I thought an interesting split test would be to test if text links on a landing page that are capitalised get more clicks than ones that don’t. For example: https://www.jamesbachini.com/ – standard (control) https://www.JamesBachini.com/ – Capitalised This was for a site that wasn’t a personal name and contained a full directory and page like http://www.MyGreatWebSite.com/example/page.htm […]

  • PHP Redirect with Parameters | Passing GET variables in a Redirect

    PHP Redirect with Parameters | Passing GET variables in a Redirect

    Update March 2023 To do a 301 PHP redirect with parameters to another page we can use the following code: The entire query parameter string is stored in the following variable. Everything after the question mark. So for the URL: server.com/index.php?test=123&hi=hellothe $_SERVER[‘QUERY_STRING’] will contain this string “test=123&hi=hello” We can then pass this out when redirecting […]

  • Wasabi AB Testing Platform

    Wasabi AB Testing Platform

    Update July 2020 – Wasabi is no longer maintained or supported. Check this article for more information on conversion rate optimisation. Wasabi AB Testing Platform Intuit have opensourced a enterprise grade A/B testing platform called Wasabi. This runs as an API on a separate server from your site/landers. It isn’t the easiest thing to setup […]

  • A simple iOS / Android traffic splitter in PHP

    A simple iOS / Android traffic splitter in PHP

    The following basic PHP code will split traffic by device with iOS traffic going to the first out link, Android to the second and leftovers to the third. TIP: This uses a 301 redirect however you can do any type of programmatic variation based on the user agent. You can copy and paste this into […]

  • Option to Disable Adsense Ads

    Option to Disable Adsense Ads

    In some cases it is beneficial to provide a link or option for visitors to a site not to see the adsense ads the first time they visit a page. Ads can sometimes be viewed negatively and for the first visit or under certain circumstances it is best to temporarily disable them. Here is the […]

  • Dynamic Tracking Tokens For Major Ad Networks

    Dynamic Tracking Tokens For Major Ad Networks

    Google Adwords Search term insertion {keyword=”leather couches”} {Keyword=”Leather couches”} {KeyWord=”Leather Couches”} {KEYWORD= “LEATHER COUCHES”} {device} {devicemodel} {placement} {creative} {adposition} {target} {network} {matchtype} Facebook No tokens 🙁 Plenty of Fish pof.com {age:} {state:} {gender:} TrafficVance %KEYWORD% MSN Adcenter {KeyWord} = Order Fresh Fruit today {keyword} = Order fresh fruit today {Keyword} = Order Fresh fruit today […]

  • Setting Up Retargeting Pixels for Adwords and Facebook

    Setting Up Retargeting Pixels for Adwords and Facebook

    Retargeting works by placing a image pixel or code snippet on your website. You can then launch advertising campaigns targeted at those specific users that have visited the page and “seen” the hidden pixel. This is how to set it up… Facebook Go to Ads Manager > Audiences > Create Audience > Custom Audience > […]

  • Setting up Maxmind GEOIP2 Legacy Database with PHP or Javascript

    This is the php code I use to access geoip data from Maxmind’s geoip database: <?php $gpath = getcwd() . “/GeoIPCity.dat”; if (isset($_SERVER[‘HTTP_X_FORWARDED_FOR’])) { $myip = $_SERVER[‘HTTP_X_FORWARDED_FOR’]; } if (isset($_SERVER[‘REMOTE_ADDR’])) { $myip = $_SERVER[‘REMOTE_ADDR’]; } include(“./geoipcity.inc”); $gi = geoip_open($gpath,GEOIP_STANDARD); $record = geoip_record_by_addr($gi,$myip); $city = $record->city; $countrycode = $record->country_code; geoip_close($gi); echo ‘countrycode = “‘.$countrycode.’”; city = […]

  • How To Optimise Online Affiliate Marketing Campaigns

    How To Optimise Online Affiliate Marketing Campaigns

    This is going to be another long post about a seemingly boring topic of optimisation. If you ask a hundred affiliates how they optimise a campaign 90% of them will tell you they just get a feel for it. Very few affiliates actually have a set process or mathematical formula they use when optimising. Whether […]