cookiesshopifysession-cookiesreplicationaffiliate

Using Cookies to Replicate Shopify Store for Affiliate Sales Tracking


Good Day Everyone!

So working on a project for a client who wants to track affiliate sales on Shopify. Problem is, they are not using any of the generic affiliate management solutions available in Shopify but their own in-house management system.

How could someone theoretically make replicated URLs so that whenever someone uses this URL to purchase anything on the store, it gets tracked to the affiliate and the order gets added to their sales and they can hence be paid out on it eventually.

I know that this would probably have something to do with cookies, affiliate and orders database and session tracking but I don't know how all these pieces fit together.

Any suggestions on how to implement this? If anyone already has done anything similar.


Solution

  • I am not sure where you are getting your info from, but when a browser lands on a Shopify page with a ref query parameter (let us say you assigned that to an affiliate code), that ref is saved along with the order created by that browser session. So if links are clicked with affiliate codes, Shopify just assigns them to the order. You get one per order. How is that complicated to deal with? What else are you looking for?