1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to easily split mobile traffic from non-mobile traffic

Discussion in 'Black Hat SEO Tools' started by jimbodmit, Nov 13, 2012.

  1. jimbodmit

    jimbodmit Junior Member

    Joined:
    Aug 4, 2011
    Messages:
    110
    Likes Received:
    127
    Location:
    The Moon
    Sometimes I need to split mobile traffic from non-mobile traffic before I send it to a CPA offer. I usually set up a PHP script on my hosting to do that. Just found a site today which offers a much easier solution.

    Let's say you want to send non-mobile traffic to www.nonmobiletraffic.com and mobile traffic to www.mobiletraffic.com
    Just send all your traffic to:

    Code:
    [URL="http://www.detectmobilebrowser.com/www.nonmobiletraffic.com|www.mobiletraffic.com"]www.detectmobilebrowser.com/www.nonmobiletraffic.com|www.mobiletraffic.com[/URL]
    Obviously use a URL shortener or your own domain to hide that long URL, but anyway it's an easy & quick solution and handy for those of you who don't have your own hosting.
     
    • Thanks Thanks x 1
  2. baddth

    baddth Newbie

    Joined:
    Oct 9, 2013
    Messages:
    31
    Likes Received:
    5
    Occupation:
    Software Engineer
    Location:
    Mountain View, CA
    Home Page:
    the site you mentioned is down at the moment.
    It's fairly easy to write a code to track device anyway. Just use server code to look at user agent. Google should have a list of mobile user agent string.
     
  3. knightofarmor

    knightofarmor Regular Member

    Joined:
    May 3, 2012
    Messages:
    333
    Likes Received:
    143
    Put this in the head of your index.html

    <script type="text/javascript">

    if (screen.width<800) {

    window.location="http://yourwebsite.com/mobile/";

    }

    </script>