referring_site on an order returns null when purchased after adding to cart

VamsiKande
Visitor
3 0 0

referring_site is returning null when purchased after adding to cart, but returns an url when purchased directly by clicking buy it now button on the store front. Could someone please help on this issue?

Replies 3 (3)

buildpath
Shopify Partner
59 11 19

I encountered this issue with ref being unreliable as well. So I use cart attributes instead (a click ID) which I set using cart.js

Ecom entrepreneur since 2004 | Shopify App developer since 2021 | Shopify merchant and theme developer since 2016
VamsiKande
Visitor
3 0 0

we are using webhook endpoints of api2cart to get the order details of shopify - referring_site, so there is no click ID, you are referring which I cannot use.

VamsiKande
Visitor
3 0 0

Can someone please me help with the issue specified on referring_site?