I want to capture and handle the user's actions to add gamification.
in example, 'add cart event' , 'buy (include purchase)'.. etc
I think ajax api in theme is good solution. but I need server-side solution.
How can I capture user event on serverside? webhook? subscribe?
I think Webhooks (https://shopify.dev/api/admin-rest/2021-10/resources/webhook#top) would be a great place to start for your use case. We send webhooks on several topics to applications that subscribe to them that are installed on shops. In particular, I would look at the cart/* and checkout/* webhooks.
Thanks for your help!! @james-langille
I tested webhook solution ( carts update/create ) according to your suggestion.
It's good things for my main requirements. but I can't get user data.
in webhook-cart example response, it has not user data. also real response too.
searching this requirement, I found weak-security but available solution. use 'liquid' or 'theme-ajax' to get user data & cart item data. is it best for my requirement?
this post seems to be same my question. https://community.shopify.com/c/shopify-apis-and-sdks/understanding-adding-cart-attributes-to-webhoo...
is it same answer in 2021?
Connect your PayPal account to allow your customers to checkout using the PayPal gateway a...By Ollie Jul 28, 2022