Personalized checkout and custom promotions with Shopify Scripts
Hello,
I am encountering an issue within the Custom Pixel checkout process, specifically when handling price adjustments for products. If a product's price is reduced (for instance, from $19 to $16), I intend to capture the reduced price in the data object. However, the data consistently reflects the original, higher price.
Could anyone advise on the correct variable to use in order to retrieve the reduced price? Below is the structure of the current data object for reference:
{
item_id: variant.id,
item_name: variant.product.title,
discount: totalDiscount,
index,
item_brand: variant.product.vendor,
item_category: variant.product.type,
item_variant: variantName,
price: variant.price.amount,
quantity: item.quantity,
};
Best
Marc
Hi Marc,
Thanks for your query.
could you please share your website URL? i would love to check the datalayer.
Dynamic value tracking depends on the datalayer.
Thanks
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025