What's your biggest current challenge? Have your say in Community Polls along the right column.

Re: Tracking app generated sales

Solved

Tracking app generated sales

kritikal
Shopify Partner
4 0 1

Hi all!

I'm trying to build an app that shows the revenue generated by the app  (e.g. items that are added to the order because of the app) and also bill the user by the extra revenue. I see some apps does this but I cannot figure it out.

 

I know I can get the order data from graphql endpoint or webhook subscription, but how do I tag the order to show that the order/item is the result of my app? 

 

Thanks in advance!

Accepted Solution (1)

wisn_shaftler
Shopify Partner
17 1 1

This is an accepted solution.

so assuming you are going to build a upsell / crossell app, and assume you like to tag the item that the user added to cart using your app generated "add to cart" element.

 

to do that please use product "properties" (more here -https://shopify.dev/docs/api/ajax/reference/cart#post-locale-cart-add-js) with some unique text. so when someone add to cart item from your app suggested, then the property will be there, after fullfill the order, you can track that.

WISNSHAFTLER
want to connect? send me DM or mail me, wisnshaftler@gmail.com

View solution in original post

Replies 2 (2)

wisn_shaftler
Shopify Partner
17 1 1

This is an accepted solution.

so assuming you are going to build a upsell / crossell app, and assume you like to tag the item that the user added to cart using your app generated "add to cart" element.

 

to do that please use product "properties" (more here -https://shopify.dev/docs/api/ajax/reference/cart#post-locale-cart-add-js) with some unique text. so when someone add to cart item from your app suggested, then the property will be there, after fullfill the order, you can track that.

WISNSHAFTLER
want to connect? send me DM or mail me, wisnshaftler@gmail.com
kritikal
Shopify Partner
4 0 1

Thanks so much! This will solve the issue of tracking the item that is directly added via the app. 

So for tracking the second step conversion (e.g. user clicks one of the product from my app and then buys the item), I should use https://shopify.dev/docs/api/ajax/reference/product-recommendations#tracking-conversions-for-product... right?