Category: Tracking

I genuinely believe I know more than anyone else on the planet about tracking online marketing campaigns, mainly because I’ve learned from messing it up more times than anyone else on the planet.

0

Setting up HTTPS (SSL) with Cloudflare and WordPress

I’ve been working with blockchain and cryptography for 3 years now which is probably a good time to update the old wordpress blog to SSL before anyone notices. Turns out I don’t need to purchase or manage an SSL certificate, which is a shame because I loved breaking things with that certbot thing on linux. If you are just running a wordpress blog or simple website like this one you...

0

Progressive Optimisation

When looking at conversion rate statistics for a new traffic source it is important to optimise the zone ids as efficiently as possible. What I tend to do is work out roughly what conversion rate I want to target and then put a progressive funnel in place to build up to it. So if a zone only has 5000 impressions it’s hard to tell if it’ll be good or not,...

0

Capitalisation of Links www.MySite.com Test

I thought an interesting split test would be to test if links that are capitalised get more clicks than ones that don’t. For example: http://www.jamesbachini.com/ – standard (control) http://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 Here are the results: Case Clicks Leads Standard 37065 1080 Capitalised 35531 1024   From this I would suggest that...

0

Passing URL parameters (GET variables) on a PHP redirect

This was something quite simple that shouldn’t have taken me as long as it did to figure out. I had traffic going to one url: http://myserver.com/lander.php?source=google&campaign=no1&c1=foobar I wanted to split the traffic to try two different conversion funnels. The thing was I needed to keep the source, campaign, c1 variables in the url and pass them through to the following landing page so they could be tracked correctly. So I...

0

Wasabi Opensource A/B 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 and will require some knowledge of using the command line from a linux based system. You can setup multiple split tests on your website. For example you may want to test two different headlines or another test might be different...

0

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. <?php     $ua = strtolower($_SERVER[‘HTTP_USER_AGENT’]);     if (strpos($ua,’iphone’) !== false || strpos($ua,’ipod’) !== false || strpos($ua,’ipad’) !== false) {         $out = ‘https://iosoutlink.com/’;     } elseif (strpos($ua,’android’) !== false) {         $out = ‘https://androidoutlink.com’;     } else {       ...

0

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 code so that you can just add ?noads=1 to the end of your url and...

1

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 {keyWORD} = Order fresh FRUIT today {KEYWord} = Order FRESH fruit today {KEYWORD} = Order...

retargeting on google and facebook 0

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 > Website Traffic Set in the last to a max of 180 days if required Enter...

Setting up Maxmind GEOIP2 Legacy Database with PHP or Javascript 0

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 = “‘.$city.’”;’; ?> It sets city and countrycode vars, the two lines you’ll need to edit...