Storefront API and Analytics not working

Storefront API and Analytics not working

RaphaelFF
Shopify Partner
1 0 0

Our team is currently developing a custom frontend using Svelte which interacts with the Storefront Graphql API. However it seams like the "Added to cart" events are not being recorded by the Shopify Analytics but the "Reached checkout" events seam to trigger. We are creating the cart using the "cartCreate" mutation, and adding lines using the "cartLinesAdd" mutation.

 

So basically we have the following questions:

1) can "Added to Cart" events be tracked via the Storefront API (or any other api that can be used in our setup)? 

2) Are we required to manually track the events?

        If yes: how can we do so?

        If no: why does it not work then? What do we have to do differently?

 

Thanks in advance,

Raphael

Replies 0 (0)