Hi,
How to set the cookie on every page, when ?referral=877548484 is added to the url?
I use url-rewriting for nice seo-urls, I want something like this to work:
http://www.yourdomain.com/productxx?referral=877548484
I don´t use an affiliate-module, because User Referral is everything I want except this.
Comments
Comment #1
Ivo.Radulovski commentedneed the same - I have set up something like
inside the referral_get() function but ints not working - maybe some cache issue?
Comment #2
Ivo.Radulovski commentedI got the solution
Just needed to create a custom block which checks if there is set a RID (Referral ID) and sets the cookie.
Comment #3
alliax commentedWould this solution (the custom block) work when drupal cache is enabled? I don't think so, but on your site, do you have cache enabled?