referring_site value is not working

Alex75
Tourist
4 0 4

I can never get a "good" value from the Shopify webhooks in the JSON
for "referring_site".

We are capturing all of the following hooks: checkouts/create,
orders/create, orders/updated, orders/delete, orders/fulfilled,
orders/paid, orders/cancelled, and order_transactions/create.

The values we get back are always one of these:

1) referring_site is the shop order URL, for example:

For example:
https://beta-test-store-1.myshopify.com/admin/orders/4763378691


2) referring_site is the Shopify customer login URL:

For example:
https://www.shopify.com/login

3) referring_site is the checkout URL:

For example:
https://checkout.shopify.com/17854443/checkouts/c7314ba7797f89ef35a2a9ef24873956/thank_you

4) referring_site is an empty string

Of course none of these is what we need for our app. We need to know
the external URL that brought the customer to the product page.

I have set up a simple redirection service, you can see it simply
redirects to our test product page:
http://infl.se/s/v4UwsQ

But this URL is never recorded in the referring_site JSON we received after making a
purchase from any webhooks.

Please help with any insights you have, it's really critical for our
integration.

Replies 3 (3)
ClementG
Shopify Partner
660 0 144

I'm upvoting this because I'm also curious how it works.

Is it based on the referer http header? What if the user shuts down the browser and comes back to it later?

poppyr
Tourist
3 0 1

Hi Alex,

 

I appreciate this is from 2017 - but did you manage to work this out? having the same issue

Jerry_Pena
Shopify Partner
5 1 2

bump


@poppyr wrote:

Hi Alex,

 

I appreciate this is from 2017 - but did you manage to work this out? having the same issue