Monthly Archive: May 2016

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

No More Forced Tablet Traffic On Adwords

At last Google has put an end to the way it was allowing bid adjustments for mobile and desktop but not tablets. For years this has meant that Adwords advertisers were forced into getting unwanted tablet traffic and paying the same rate for it as desktop. Here is the blog announcement from Google: http://adwords.blogspot.co.uk/2016/05/ads-and-analytics-innovations-for-a-mobile-first-world.html If you are running Adwords campaigns get in there quick and set the tablet bid adjustment...

0

Splitting traffic to different offers on mobile

If you are buying bulk traffic to a mobile offer the chances are that you can split some of your traffic off to different offers. For example if  you have a pin submit that only accepts android but has a much higher payout then you can separate your android traffic and increase your bottom line. There are a few ways to do this using popular tracking software but I prefer...

0

RAM & CPU usage PHP script

I needed a script to do a basic server health check and built the following which can be viewed here: http://jamesbachini.com/misc/ram.php and downloaded here: http://jamesbachini.com/misc/ram.zip It measures RAM, CPU, Hard disk usage, Established and total connections, a few other bits and pieces. It has a traffic light system which is setup for my needs but you can fiddle with as necessary if you want to change the parameters. Here’s a...

0

Basic exit intent pop up script

The following script will launch a pop up and redirect if the user moves the mouse off the page. You can add this to your landing page targeted at desktop users, on mobile it wont work obviously. This is just a basic version but you can change the popUp() function to load an email capture box, redirect to the offer page, load a different lander/angle, play a sound or video,...

0

Resize youtube/vimeo iframe to maximum available height and width

Here is the code to make a flexible youtube.com or vimeo.com video fit both the height and width of the containing div. Like a flexible adsense unit it will take up the maximum available space on the page or be constrained within a containing object such as a div. CSS: .vcontainer { position:relative; padding-bottom:56.25%; padding-top:30px; height:0; overflow:hidden; } .vcontainer iframe, .vcontainer object, .vcontainer embed { position:absolute; top:0; left:0; width:100%; height:100%;...