Home > Tracking Campaigns > CPV Lab Pro

CPV Lab & passing target to landing page question (2)


09-11-2012 03:48 AM #1 zeroonedigital (Member)
CPV Lab & passing target to landing page question

Let's say I'm bidding on the keyword "coupon" in Trafficvance. When I pass the target to the landing page in order to call out the URL for the visitors, will the php code (below) display the target as "coupon" on the landing page even if the URL that it was popped on was something like "coupon-moms.com"

So for further clarification, here is my cpvlab link that I plug into my TV campaign:

http://www.trackingxxx.com/base.php?...word={keyword}

And the only keyword I'm bidding on is "coupon"

If my pop is shown on a url and the target is "coupon-moms.com" will TV pass the target as this:

http://www.trackingxxx.com/base.php?...keyword=coupon

or this:

http://www.trackingxxx.com/base.php?...oupon-moms.com

So yeah, I guess I'm just trying to figure out whether this script is useless for keyword (non-url) targets. I'm not familiar enough with TV's bidding system........ Let me know if anything isn't clear. Thx!



And here is the code I was referring to:

PHP Code:
<?php $target = str_replace('http://', '', str_replace('https://', '', str_replace('www.', '', $_GET["target"]))); echo(ucfirst(strpos($target,'/') !== false ? substr($target,0,strpos($target,'/')) : $target)); ?>


So your LP should have something like this on it:

PHP Code:
Hello, visitors from <?php echo($_GET["target"]) ?>


09-11-2012 04:30 PM #2 CPVLab ()

Quote Originally Posted by liamtheterrier View Post
Let's say I'm bidding on the keyword "coupon" in Trafficvance. When I pass the target to the landing page in order to call out the URL for the visitors, will the php code (below) display the target as "coupon" on the landing page even if the URL that it was popped on was something like "coupon-moms.com"

So for further clarification, here is my cpvlab link that I plug into my TV campaign:

http://www.trackingxxx.com/base.php?...word={keyword}

And the only keyword I'm bidding on is "coupon"

If my pop is shown on a url and the target is "coupon-moms.com" will TV pass the target as this:

http://www.trackingxxx.com/base.php?...keyword=coupon

or this:

http://www.trackingxxx.com/base.php?...oupon-moms.com

So yeah, I guess I'm just trying to figure out whether this script is useless for keyword (non-url) targets. I'm not familiar enough with TV's bidding system........ Let me know if anything isn't clear. Thx!



And here is the code I was referring to:

PHP Code:
<?php $target = str_replace('http://', '', str_replace('https://', '', str_replace('www.', '', $_GET["target"]))); echo(ucfirst(strpos($target,'/') !== false ? substr($target,0,strpos($target,'/')) : $target)); ?>


So your LP should have something like this on it:

PHP Code:
Hello, visitors from <?php echo($_GET["target"]) ?>

Hey liamtheterrier,

Yes, the correct code to insert to display targeting keyword in your landing page is:

<?php $target = str_replace('http://', '', str_replace('https://', '', str_replace('www.', '', $_GET["target"]))); echo(ucfirst(strpos($target,'/') !== false ? substr($target,0,strpos($target,'/')) : $target)); ?>

You can find this code in the very bottom section of your campaign setup page.

So when you check 'Pass Target to LP as Target' box and insert this code, the keyword will be displayed in the landing page.

Thanks!


Home > Tracking Campaigns > CPV Lab Pro