Development discussions around Shopify APIs
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.
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?
Hi Alex,
I appreciate this is from 2017 - but did you manage to work this out? having the same issue
bump
@poppyr wrote:Hi Alex,
I appreciate this is from 2017 - but did you manage to work this out? having the same issue
User | RANK |
---|---|
57 | |
11 | |
7 | |
5 | |
5 |
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023