Dynamic Target (URL) Insertion Question

5 replies
Hello all... I hope this is easier for some of you guys that this has been for me, but of course I know there's a genius or 4 here that can help me out with this one. I'll try to be as clear as I can...

I have a PPV campaign that I'm running now using MediaTraffic, and P202 to track. I have rotating landing pages that I would like to dynamically insert the URL on the pages.

In the past I would hard-code the target on my page because I was only targeting 1 URL. But now I want to target a list of URLs (no more than 50 at a time), and I want to insert this URL. I hope I explained that correctly.

Well... since I'm using Media Traffic... I must enable "Target Pass-Through", which I did.

My link ends with "t202kw="... so here's where I'm having my problem.

The "t202kw=" passes the target through to my P202 tracking (I know that), but my question is how do I pass the target to my landing page?

I'm using "$target1 = $_GET['keyword'];" in my lander, so I know that I must add this to the end of my URL, which will then make my URL look like this:

t202kw=&keyword=

What must I add to the end of this in order to grab the target URL dynamically and pass it to my lander?

Any help would be greatly appreciated. Thanks guys and gals!
#dynamic #insertion #question #target #url
  • Profile picture of the author Droopy Dawg
    Anyone? (bump)
    Signature


    {{ DiscussionBoard.errors[8427194].message }}
  • Profile picture of the author Battra
    Use "$target1 = $_GET['t202kw'];" in your landing page instead.

    You need to see which variable holds the keyword by looking at your LP URL when someone comes to your site.

    "http:// lander.com/page?t202kw=xyz" means you have to use $_GET['t202kw'] to grab the keyword.
    {{ DiscussionBoard.errors[8427839].message }}
  • Profile picture of the author Steve Fleming
    The other thing to ensure is that your lp is a php page otherwise $_GET won't
    work.

    Should look like this...

    Code:
    <?php $target1 = $_GET['t202kw'];?>
    You may already be doing this but since you didn't mention it I
    just wanted to throw it out there.

    Hope it helps.

    Steve
    {{ DiscussionBoard.errors[8427862].message }}
    • Profile picture of the author Droopy Dawg
      Thanks Steve. Yes the LPs are PHP (php is required to make the rotating LP script work in P202). But I'll try that code change and see what happens.

      So I wouldn't need to add anything to the end of the URL if I make this change? And simply ending my URL with "t202kw=" will dynamically call the target and insert it into the LP?

      Thanks again for your help.

      Originally Posted by Steve Fleming View Post

      The other thing to ensure is that your lp is a php page otherwise Array won't
      work.

      Should look like this...

      Code:
      Code
      You may already be doing this but since you didn't mention it I
      just wanted to throw it out there.

      Hope it helps.

      Steve
      Signature


      {{ DiscussionBoard.errors[8427892].message }}
  • Profile picture of the author Steve Fleming
    Well as long as the link that's calling your lp is passing the actual keyword
    in the variable 't202kw' then it's just a matter of grabbing it from the $_GET
    array.

    Since your code is loading it into the variable '
    $target1' you would then just need to print it out like...

    the keyword that was passed was <?php echo($target1);?> but if there's nothing here then it's blank!

    Obviously you'd replace the text above with your own but it's just an example to show how you 'd output it to the page.

    Steve
    {{ DiscussionBoard.errors[8427918].message }}

Trending Topics