Home > Other Systems (CPVLab, iMobiTrax, P202, Track Revenue, Click, Google Analytics, etc.) > Normal Prosper202

P202 Passing tokens on PHP redirection (5)


11-21-2013 03:46 PM #1 afilia320 (Member)
P202 Passing tokens on PHP redirection

Im using P202 php script to redirect traffic to an offer and I am losing my tokens.

Script that P202 gives has been inserted in a redirect.php file as follows (this I got from Step6 of the P202 setup "get LP code"):

Code:
<?php
  
  // ------------------------------------------------------------------- 
  //
  // Tracking202 PHP Redirection, created on Wed Nov, 2013
  //
  // This PHP code is to be used for the following landing page.
  // http://www.mydomain.com/LPfolder/Landing.php
  //                       
  // -------------------------------------------------------------------
  
  if (isset($_COOKIE['tracking202outbound'])) {
	$tracking202outbound = $_COOKIE['tracking202outbound'];     
  } else {
	$tracking202outbound = 'http://www.tracker.com/tracking202/redirect/lp.php?lpip=811&pci='.$_COOKIE['tracking202pci'];
  }
  
  header('location: '.$tracking202outbound);
  
?>
Redirect.php is executed after visitor clicks on the call to action button "CLICK HERE"

On my Landing page I am capturing my tokens so they can be passed on as follows:

I define them:
Code:
$c1 = $_GET['c1'];
And then the button action calls

/redirect.php?c1=c1&t202kw=c1
.

Somehow this tokens are not being received.

What am I doing wrong here or what am I missing. Maybe instead of using this redirect php i should just be using the redirect link with the whole thing, something like this:

http://www.mydomain.com/LPfolder/Lan...&c1=c1&t202kw=

I appreciate everyone's notes


11-21-2013 04:14 PM #2 dwel999 (Member)

Looks like you are just passing c1 as text not as a variable.

/redirect.php?c1='.$c1.'&t202kw='.$c1
or in html
/redirect.php?c1=<? echo $c1 ?>&t202kw=<? echo $c1 ?>


11-21-2013 04:40 PM #3 afilia320 (Member)

dwell thats right, I am succesfully passing c1 on to everyone now. Thanks!, now I move on to my t202kw registration


Could there be any reason for which t202kw is not appearing on my P202 spy?


11-21-2013 04:53 PM #4 dwel999 (Member)

Not too sure, it should pass just like c1 if you pass it as a variable. I haven't used 202 in long time but double check your link to make sure you are passing a variable like you did to fix c1.


11-21-2013 07:12 PM #5 JasperP (Member)

Are you talking about the keyword column in the spy tab? Is it showing up blank?

If this is your destination URL, you need to add something to t202kw from whatever traffic source you're using

Code:
http://www.mydomain.com/LPfolder/Landing.php?t202id=616&c1=c1&t202kw=
In fact if you just test the link right now and put:

Code:
http://www.mydomain.com/LPfolder/Landing.php?t202id=616&c1=c1&t202kw=testkeyword
'Display' should be on "Show All Clicks" to see your test click


Home > Other Systems (CPVLab, iMobiTrax, P202, Track Revenue, Click, Google Analytics, etc.) > Normal Prosper202