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

Rotating an offer?

Discussion in 'General PPC Discussion' started by Gigabet, Aug 2, 2013.

  1. Gigabet

    Gigabet Junior Member

    Joined:
    Jul 13, 2013
    Messages:
    141
    Likes Received:
    31
    I plan on direct linking to a cpa offer, however I would like to rotate 3-4 offers first meaning that if someone clicks on my ad he is taken to one of the 3 offers by chance
    (of course the distribution should be equally). So I know which one converts best after a few hundred clicks.

    Does anyone know of a software or script solution for this?
     
  2. Gogol

    Gogol Elite Member

    Joined:
    Sep 10, 2010
    Messages:
    3,118
    Likes Received:
    2,896
    Gender:
    Male
    With PHP, you can easily do it.
    Make a php script on your server and name it e.g. offer.php . Here is the barebone code for the php file
    Code:
    <?php 
    $offer_array = array('link1' , 'link2' , 'link3');
    $length = count($offer_array) - 1;
    $random_index = rand(0,$length) ;
    header('Location:'.$offer_array[$random_index]);
    
    Obviously, this is pretty basic. You can add a lot of things to it and probably can track whom went where ;)


    Best of luck..
     
    • Thanks Thanks x 1
    Last edited: Aug 2, 2013
  3. Gigabet

    Gigabet Junior Member

    Joined:
    Jul 13, 2013
    Messages:
    141
    Likes Received:
    31
    Thanks, for the great info! However I know nothing about php what so ever :(
    Would I need to build a site and place it on it? Will I still be able to track everything accordingly using sub id and tracking pixel?
     
  4. Gogol

    Gogol Elite Member

    Joined:
    Sep 10, 2010
    Messages:
    3,118
    Likes Received:
    2,896
    Gender:
    Male
    The script I wrote for you doesn't have the tracking code in it, but it can be done (the script just routes to a link randomly..). Your best bait is to hire someone if you do not know how to do it yourself. Yes you need some kind of a server where you would save this as offer.php or something. I can help you out on this for a minimal price if you choose me. Send me a PM if interested.