Tracking URL params via webhook when checkout is triggered via entry to home page

Shopify Partner
2 0 1

How do you track checkouts via the shopify api-webhook if the user lands on the the stores home page URL and not on any product page URL with tracking params set?

Failing flow: myexamplestore.com?utm_campaign=1&utm_medium=2

Now, if the user creates a checkout from this point of entry, the api-webhook for checkouts returns an empty object for landing_site and referring_site params.


Success flow: myexamplestore.com/products/product-?utm_campaign=1&utm_medium=2

Now, if the user creates a checkout from this point of entry, the api-webhook for checkouts returns an object with tracking params set in the landing_site and referring_site params.

1 Like