E-junkie Ecommerce Forums » E-junkie Discussions
Tag Cloud for this topic: | |
| |
|
GoToGuyEnt member Posts: 11 |
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 # POSTED ON: November 13, 2008 @ 17:19 GMT -7 |
|
E-junkieChef E-Junkie Crew Posts: 936 |
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. # POSTED ON: November 13, 2008 @ 23:19 GMT -7 |
|
GoToGuyEnt member Posts: 11 |
Thank you very much! Now I've got something to play with this weekend. Andrew # POSTED ON: November 14, 2008 @ 06:34 GMT -7 |
|
GoToGuyEnt member Posts: 11 |
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['HTTP_REFERER']; 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? # POSTED ON: November 14, 2008 @ 21:22 GMT -7 |
|
E-junkieChef E-Junkie Crew Posts: 936 |
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. # POSTED ON: November 17, 2008 @ 01:50 GMT -7 MODIFIED ON: November 17, 2008 @ 02:02 GMT -7 |
|
GoToGuyEnt member Posts: 11 |
Thanks! I really appreciate how responsive you all are to requests like these. You keep making a great tool even better! Andrew # POSTED ON: November 17, 2008 @ 13:05 GMT -7 |
|
EDUK member Posts: 1 |
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['HTTP_REFERER'] produces the referral domain and $_SERVER['QUERY_STRING'] 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 # POSTED ON: March 25, 2009 @ 10:45 GMT -7 |
You must be logged in to make a post. Please click here to login. | |






