7 / 7
Mar 2009

Is this possible?



I would like to setup my affiliate program so that affiliates can send people through a hoplink to a web page with some free content on it and also a mailing list sign-up form to get access to more free content.



When a visitor arrives from the hoplink, I would like to populate a variable in the mailing list sign-up form with the affiliate's ID number.



Then, in future emails to that list of prospects in which I link to my products, I would use a hoplink URL and insert the affiliate's ID number from the mailing list database.



Using this approach, affiliates will know that the work they put into sending prospects to my website will pay off even if cookies expire or people sign up from a different computer than the one they order from, etc.



To do this, I need some way to capture the affiliate ID number from e-Junkie when the visitor is forwarded through the hoplink. Is there any way to capture this information?



It would be a huge benefit to my business if I could do this with my affiliate program.



I'm looking forward to your answer,



Andrew Seltz

  • created

    Nov '08
  • last reply

    Mar '09
  • 6

    replies

  • 1.3k

    views

  • 3

    users

  • 1

    link

You can check the REFERER value [you can do that in JavaScript (client-side) or in PHP (server side)] and then extract the affiliate value from that.

Thank you very much!



Now I've got something to play with this weekend.



Andrew

I've been testing using the referer value when a visitor arrives via a HopLink and the value that gets passed along is the original url that linked to the HopLink and there is no affiliate data included.



The PHP script I put together to read the referer data is very simple:



<?php



$referer = $SERVER['HTTPREFERER'];



echo "$referer";



?>



The value that comes back is always the page containing the hoplink and not the e-junkie hoplink URL so I can't get at the affiliate's ID.



Am I doing something wrong here?

I guess browser ignores the e-j URL as we are simply doing a 301 redirect to you.



Anyway, we have added a feature to accommodate your requirement. We now pass the affiliate's client id to your url by appending &ej_aff_id=XXXX, where XXXX is affiliate's client ID to your hoplink as long as you have ?passaff=true OR &passaff=true present in the hop link.

Thanks!



I really appreciate how responsive you all are to requests like these. You keep making a great tool even better!



Andrew

4 months later

Hi



Can someone please confirm whether this solution still works to extract the affiliate ID from the URL? In my case, the affiliate string aff= xxx or j_aff_id=XXXX is not appended to the url when &passaff=true is present in the hop link.



Using $SERVER['HTTPREFERER'] produces the referral domain and $SERVER['QUERYSTRING'] produces passaff=true as the string.



Example Code:



<a href="https://www.e-junkie.com/ecom/gb.php?ii=XXXXXX&c=ib&aff=CCCCC&passaff=true" target="ejejcsingle">Click here to view more details</a>



Thanks





Ed