js-buy-sdk - how to get the add to carts to show in shopify reports?

DennisOo
New Member
2 0 0

Hi,

 

We use the js-buy-sdk with a custom react storefront, the add to cart in the shopify reports always shows 0 items have been added to cart. See screenshot:

DennisOo_0-1609238431688.png

We do however sell products, and they are showing in our reports for both 'reached checkouts' & 'sessions converted'. Only add to cart stays 0.
I suspect it's because the 'add to cart' action happens on our custom storefront, and for the checkout we route to shopify with the checkoutUrl from the js-buy-sdk.

 

How can we get the 'add to cart' metrics to show correctly in the shopify reports?

 

0 Likes
chenster
Pathfinder
104 4 10

In an ideal situation, your addto-cart metrics is equal to the number of  checkouts. In practices, add to cart session should be a lot more than successful checkouts. So mathematically your add-to-cart values should be No. of abandoned carts plus the actual successful checkouts.  You can query abandoned carts via the abandoned cart API.

Hopeful this helps. DM me if you need more help since I'm working on a report app that could include additional metrics.

Cartoo
0 Likes
DennisOo
New Member
2 0 0

Hi Chenster,

 

Thank you for your answer, I think this would maybe be a work around.

We would prefer to find a way where the 'add to carts' get added to the analytics normally. I might open an issue as well on the js-buy-sdk git as it seems like it should be part of this?

0 Likes