Headless commerce and custom storefronts with Shopify APIs and SDKs
Hi folks,
We're currently using the Storefront API to generate a Checkout object, obtaining its webUrl, and redirecting users to the web checkout flow. To measure conversion, we want to be able to track how many users actually finished the checkout.
I'm wondering what's the best way to do this... a few ways that come to mind:
1. We store Checkout ids on the frontend, and when the user visits our app again, we ping the Storefront API to check the latest status of each Checkout object.
2. We store Checkout ids on the backend, and use a cron job to periodically use the Storefront API (or Admin API?) to get check the latest status of the Checkout object.
3. Build our own checkout flow with the Storefront API (seems like an overkill)
4. Maybe there is some sort of webhook that can let us know?
Thanks,
Eddie
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