Associate order to referrral

Highlighted
Shopify Expert
26 0 14

I'm looking to build out a series of landing pages for referrals to use and drive their customers to my site. Once a customer lands on that referral's specific page, I want that customer and/or order associated to the referral.

mysite.com

msysite.com/referral-vanity-page 
<- any orders created from this page get tagged with 'referral-name' for tracking purposes.

Trying to figure out if this can be done natively with custom form code with add-to-cart or if I need to build a custom app for it.

Anyone have ideas or suggestions on the above?

0 Likes
Shopify Expert
26 0 14

In case anyone responds to this. For now, I'm going to leverage Cookies to store the value on landing page entry and grab the cookie and load into cart attributes on the cart page.

https://github.com/carhartl/jquery-cookie

0 Likes