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

Prosper202 Issue: SubID Not Passing to Network

Discussion in 'CPA' started by gamingneeds, May 23, 2011.

  1. gamingneeds

    gamingneeds Regular Member

    Joined:
    Jul 18, 2008
    Messages:
    401
    Likes Received:
    83
    I've created a simple PHP script that I am using for split-testing. Basically, depending on the visitors information, it will either send them to 'Offer A' or 'Offer B'.

    The script is successfully gathering the data from the paid advertising network including information like the offer, keyword they searched (or subid for Facebook & Media Buys) and referring URL (where they found my advertisement).

    The problem I am having right now this is that the information is not being passed on to my affiliate network. I really need the keyword to get passed on to the affiliate network so that I can track which keywords/banners are converting and why.

    Here is an example of my script:

    The first portion of my script is the basic P202 cookie:

    Code:
    
     if (isset($_COOKIE['tracking202outbound'])) {
    	$tracking202outbound = $_COOKIE['tracking202outbound'];     
      } else {
    	$tracking202outbound = 'http://www.myprosperdomain.com/tracking202/redirect/lp.php?lpip=123&pci='.$_COOKIE['tracking202pci'];
      }
      
      header('location: '.$tracking202outbound);
    
    This is followed by a simple code of PHP that basically tells the script that if the visitor matches these qualifications, send them to Offer A and if they don't meet those qualifications, send them to Offer B.

    The links for those are P202 links that look like this:
    Code:
    http://www.myprosperdomain.com/tracking202/redirect/dl.php?t202id=1234&t202kw={keyword}
    The problem right now is I need to get the script to insert the {keyword} or {c1-c4} into that outgoing link so that it gets passed onto the affiliate network.

    Does anyone know how to accomplish this?

    Thanks for your help! :D
     
  2. gamingneeds

    gamingneeds Regular Member

    Joined:
    Jul 18, 2008
    Messages:
    401
    Likes Received:
    83
    Nobody else has ever done this?
     
  3. gamingneeds

    gamingneeds Regular Member

    Joined:
    Jul 18, 2008
    Messages:
    401
    Likes Received:
    83
    Still looking for help...

    I have changed the code to be more proper so I have a custom PHP page that holds the regular javascript landing page code:
    Code:
    <script src="http://www.mydomain.com/tracking202/static/landing.php?lpip=123" type="text/javascript"></script>
    
    Then I used redirect pages that contain this code:

    Code:
    <?php
      
      // ------------------------------------------------------------------- 
      //
      // Tracking202 PHP Redirection
      //                       
      // -------------------------------------------------------------------
      
      $tracking202outbound = 'http://www.mydomain.com/tracking202/redirect/off.php?acip=123&pci='.$_COOKIE['tracking202pci']; 
     
      header('location: '.$tracking202outbound);
      
    ?>
    
    I am using this along with my redirect script but when I go to the main landing page, Prosper isn't giving me the data.

    Anybody know a fix?
     
    Last edited: May 30, 2011