Implementing Affiliate Tracking in Your Webshop

Just save the parameter to a cookie if the cookie is empty…

Keith has a good explanation of a slightly different method.

Of course. The affiliate program will provide you with an affiliate ID when you create a new affiliate (I know Rewardful allows you to set an affiliate ID). Save the affiliate ID to the affiliate User (I normally put Affiliate stuff in Current User’s Affiliate where affiliate is a new data type).

When a new user arrives using the affiliate link, save the affiliate/referral ID to a cookie, and when they sign up save it to the user.

1 Like