Passing Keywords with LeadImpact

Passing Keywords with LeadImpact

Read this first about 7Search...

7Search is no longer in business. This article is available for historical purposes only.

This article is OLD

This article was published 5 years, 6 months ago. Please keep in mind that the information may be outdated. Post a comment below if you have any questions.

As long as you have run at least one affiliate campaign, you have a pretty good idea how important it is that you collect as much data as possible on each campaign you run so you can optimize and essentially get the most money out of your campaign as possible. Some traffic sources make it a real pain to collect the data required in order to optimize your campaign. One of the main reasons I push 7Search to my new publishers so hard is because of how easy they make it to collect data from the traffic you run with them. Well, one traffic source which I am very fond of doe not make it quite so easy. That traffic source is LeadImpact. So, here is how you can pass keywords from your LeadImpact campaign to your PeerFly SubID.

LeadImpact Keyword Pass-Through

Being able to pass the keyword (or URL) from your LeadImpact campaign will really help when you go to optimize it. Unfortunately, there seems to be an issue with the LeadImpact Conversion Script, but by passing the keyword as a SubID into your PeerFly link you can bypass that issue and you’ll actually have an easier time optimizing your campaign based on your PeerFly Reports page.

The first step is creating a new LeadImpact campaign. On the 2nd step, it is very important that you check the box to allow Keyword Pass-Through. If you do not check this box your keyword will not be passed to your redirect page.

Keyword Pass-Through with LeadImpact

Passing that keyword is not as simple as it is with DirectCPV, but by simply setting up a page to redirect to your PeerFly link and passing the keyword on that page you can still accomplish it. The trick is simply using a PHP $_GET variable to grab the keyword from your redirect link and adding that variable into one of the SubIDs in your PeerFly link. Sound confusing? This is how easy it is!

{code type=”php”}
$keyword = urlencode($_GET[‘keyword’]);
$link = “$keyword&subid2=&subid3=”;
header(“Location: $link”);

All that code does is grab the keyword being passed into your link by LeadImpact (?keyword=KEYWORD), creates a $link variable with the keyword ($keyword) passed into the first SubID, and then redirects to that link variable. Make sure you update the link variable with your affiliate link and simply put $keyword as your first SubID. Once you start getting clicks you can will be able to see a SubID breakdown of each keyword that has generated a click on PeerFly as well as any conversions you have generated.

In order to use the code above you will need your own domain and a hosting account. I suggest using HostGator.

If you need help setting up your redirect page feel free to comment below or contact me. I am happy to help because I know once you have a PeerFly campaign set up on LeadImpact and the data you need, you’ll be profiting in no time and we will both be making more money! Now, let’s get moving!

Post a comment

23 thoughts on Passing Keywords with LeadImpact

  1. If I understood correctly, this script is only a redirect to your Peerfly affiliate link so it works only for direct linking from leadimpact.

    Can we pass keyword as a SUBID when using our own landing page?

    1. Great question! Yes, you can. You would need to collect the keyword using the same script, but remove the header(“Location: “) part and simply make your call to action button in your landing page go to $link.

      1. How can I link a call to action button to go to $link upon click? is that something like this Button ? I added this script at the top of the landing page (index.php) but how can I redirect the button to $link? Look forward to your answer 🙂 Cheers!

    2. Hello Luck
      How are you. Sorry I need your help.
      I would like to know how my prosper202 link should look to properly track keywords on leadimpact.

      When I generate URL I got something like this Code:
      Should I add dynamic keyword {keyword} after kw= or something else or leave it without adding anything?

      I did 3 of them, not sure which one is right or all are wrong?




      Always thanks for your help.
      Thank you

  2. Thanks for the answer, that’s exactly what I thought. I also have one more question.
    Should I put that code on the very top of my index.html file or somewhere else? Also, I don’t know if I am right, but I think you missed to close your php tag with “?>”.

    1. Yes, put it at the top of your index.php file. In that case you would need to put the closing ?>. If your page is all php you don’t need the closing tag 🙂

  3. Hi Luke

    do I have to add the above code to my index.php file for each page per offer in a campaign since they each offer will have a separate landing page and separate keywords?

    1. You would want to make a redirect page for each offer or pass the offer ID as well as the keyword. The keyword is passed dynamically so you don’t need to make a new one for each keyword.

  4. Hi Luke,

    How about setup a campaign in leadimpact with LP, P202 and LP rotation ? I think a lot of people are getting problems with that. Including me LOL. Just a request from me, please make post about that. Thanks..

  5. Hola Lucas una pregunta fuera de tema cuando sacas un tutorial sobre dessarrollo de campañas en AdOnNetwork? gracias soy novato.

    1. I haven’t messed with CPVLab too much, but I bet they have a feature built in for tracking on LeadImpact. I’d ask them 🙂

  6. Luke,
    I’m using you codes to pass the keyword from leadimpact to clickbank but does not work. On clickbank side, it shows tracking id “Not set”.

    1. I haven’t tested ClickBank so I’m not sure what the issue is, but you might want to reach out to their support.

  7. Got the answer from clickbank below.they do not accept keyword with punctuation. therefore any url will be removed from tid and will not displayed in their tracking.

    Answer from clickbank:
    The Tracking ID can be 1-24 characters long, containing alpha and numeric characters only. Any Tracking ID longer than 24 characters will be truncated. Any Tracking ID containing characters other than alpha or numeric values such as punctuation or special characters will have the entire Tracking ID removed from the HopLink and order process and will not show in the transaction report. Tracking IDs received with upper and lower case characters will be set to all uppercase.

  8. I still don’t quite follow this. Is there a chance someone could do a video or a detailed step by step of doing this for a newbie.

  9. I think this is wrong – you can’t use $keyword between two quotations in PHP:
    $link = “$keyword&subid2=&subid3=”;
    Should be,
    $link = “”.$keyword;

    1. I always use variables within double quotes. You can’t use it within a single quote, but double should be fine I believe.

  10. Just thought I would let folks know that: %keyword% will pass the keyword to wherever you wanna pass it…so it would look something like &s1=%keyword% or &subid=%keyword% If you pass it by hand like this you need to DISABLE the keyword pass-through. I was out of PPV for over a year and this was new info to me so I don’t know when this became available…Hope this helps.

Leave a Reply

Your email address will not be published. Required fields are marked *

Let's Make Some Money!

Want to learn how to make more money online? Join my mailing list today!

I hate spam as much as you. I will only send you awesome emails.

Click here to close this pop up if you already are subscribed.

I only send out a few emails a month, but they'll be packed with:

  • Traffic source reviews
  • Landing page templates
  • Tools you NEED in your arsenal
  • Hot affiliate offers