We are a chatbot company that has a chatbot app on the Shopify app store. We have gotten access to the orders API. Our end goal through this is to track conversion across the user conversations. Our chatbot sugests products to users from the website and then has an add to cart button. We want to track how many users have purchased this product after talking to our chatbot.To do this, we have identified a process where we store the user session and then compare this user session to the output from the orders API. Could you recommend what we need to verify while doing this from the user session or is there a better way where Shopify provides an API to track conversions for app developers like us.
Thanks in Advance
In that same Cart Update API call, you could also leave a cart attribute which is readable from the order’s API / webhooks:
That way you tie the upsell to your app.
Normally what you’re referring to is called a sales channel, where the order.source itself is an app. But in your case, it sounds like you’re just adding a chat window to the Shopify online store, so the order.source is still the same online store.
But the line item itself could be attributed back to your app.