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?
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.
@Tom_Hooker I agree with @Liam-Shopify but there are a few options:
<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