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?
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
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.