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...
Automatic Redirect for Mobile Landing Page
Want a mobile lander with a 90%+ "CTR"? Simply add the following javasript:
<script>
function go() { location.href = 'http://www.jamesbachini.com'; }
function init() {
setTimeout(function() { confirm('You have two friends who recommended this app'); },3000);
setTimeout(function()...
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"...
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)) { $myip = $_SERVER; }
if (isset($_SERVER)) { $myip...
Dealing With Googles Mobile Friendly Algorithm
From the 21st April Google will be penalising sites for mobile search which don't appear mobile friendly.
You can test your site here:
https://www.google.com/webmasters/tools/mobile-friendly/
If you haven't done any mobile design you'll probably get...
Google Friendly Mobile Pages Test
Google have provided a tool which checks to see if a site renders clearly in a mobile browser. The tool looks like it is setup at 320px and if your site...
Passing Through Landing Page Variables
This was inspired by another post which is well worth a read at:
http://affplaybook.com/blog/affiliate-marketing/the-ultimate-guide-to-landing-page-tricks/
So many traffic sources provide you with tags such as {keyword} {countrycode} {device} etc.
You can add these variables to...
Big list of Cordova/Phonegap Plugins
I needed a big list of Cordova plugins to search through:
android.support.v4
This is a Cordova plugin that adds the Android Support v4 client library. It is meant to be depended on by...
Email Bounce Handling
Here's some PHP code developed to handle bounced email responses. This will give each response a code to $resno and a category to $rescat. There are 4 categories:
Unknown - Hard bounce...
Coding PHP for Affiliates | A Getting Started Guide
Coding for me is one of the most important skills you can have as an affiliate marketer. I've met plenty of affiliates that are running huge volume, making millions and can't...