Trying to pass details from cart all way through the journey via pixels

Is it possible to retrieve the cart metafields in a web pixel on checkout start or checkout completed?

Trying to pass a handful of data from the cart all way to checkout started and checkout completed but don’t know best way to do this?

Hey Tom,

You could try saving cart metafields data in the local or session storage for later use in the checkout flow by reading the values through our Web Pixels APIs.

3 Likes

@Tom_Hooker I agree with @Liam-Shopify but there are a few options:

  • on the add-to-cart form you can add in custom properties to the item that are then accessible in checkout events OR to the cart itself (hidden input fields)
<input id="product-brand" type="hidden" type="text" name="properties[_brand]" value="{{product.metafields.custom.brand}}" form="{{ product_form_id }}">

(note:: the “_” in from of the property name makes it hidden from the product in cart instead of show to uses) dev doc: product properties

1 Like