Query regarding building a shopify app

Query regarding building a shopify app

sitakanta
Shopify Partner
5 0 0

I am trying to build a shopify app for shopify app store and in that i wish to track cart events for merchants' stores. For example any merchant uses my app should be able to track cart events for its customers. Guide me how to do that. I have created a node+react app using shopify CLI and installed this app on a dummy development store.

Replies 2 (2)

Bunty
Shopify Partner
133 39 82

Do you mean you would like to capture the add/update/remove events from the cart? If so, the only consistent way I can think of is by marinating a state using /cart.js in your app and then emitting those events based on diffs.

A big problem you would face with other alternatives is the presence of large number of types of carts/themes and their frameworks in the wild.

Hope that helps

sitakanta
Shopify Partner
5 0 0

GET /Cart.js API comes under shopify AJAX APIs which are used for making shopify themes. I don't want to make a shopify theme, i want to make a shopify app for shopify app store so that merchants can download it from app store and use it to scale up their business. So I have made an app using https://shopify.dev/apps/getting-started/create and installed this app on a dummy development store. Now i wish to track cart events of that store.