Alternative to `landing_site_ref` in GraphQL for Capturing Referral Info

Hi Shopify Community,

I’m migrating from REST to GraphQL and used landing_site_ref in REST to capture referral info from URL parameters like ?ref=. I couldn’t find a similar property in GraphQL, and I saw that ReferralCode is deprecated. Is there an alternative way to capture referral data in GraphQL?

Thanks!

I believe you may want to use this:

Marketing referral code from the link that the customer clicked to visit the store. Supports the following URL attributes: ref , source , or r.

(Deleted original reply to not have conflicting details. Originally copied content from the wrong tab over. :man_facepalming:t3:)

2 Likes

Indeed that is exactly what I needed. Thanks a lot