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
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024