On this page


Shopify's official help documentation on this new field can be found here. It's highly recommended to use the Shopify article for full technical details about this new field and how to implement conversion tracking properly.

📝Zipify Support can’t help with modifying or editing post-purchase page scripts. If you require further assistance, you can post in the Shopify Community or hire a Shopify Expert.

Conversion tracking scripts placed in the Settings > Checkout > Additional scripts > Order status page field in your Shopify admin rely on the Shopify "Order Confirmation" page to be visited for the customer's order, so they can be fired and track the initial order conversion. If a customer leaves your store on the post-purchase page, then no events on the order status page are tracked.

📝For natively integrated tracking like the Shopify Facebook Pixel integration, the "Purchase" conversion event fires when the first post-purchase page loads, to report data about the initial purchase to Facebook. For the native Shopify Google Analytics integration a "Completed Order" event fires for the initial purchase when the customer lands on the first post-purchase page.

For any other tracking service that utilizes the Order Confirmation page and a tracking script (like Google Adwords), the conversion event would instead normally fire when the Shopify "Order Confirmation" page is landed on and not on the first post-purchase upsell page.

To ensure you're capturing conversions properly for all orders, even for those that don't reach the Shopify "Order Confirmation" page, the new Post-purchase page additional scripts field has been added at the Settings > Checkout > Post-purchase page > Additional scripts section in your Shopify admin:

This new field was added for the following purposes:

  1. To track the initial order conversion when the post-purchase upsell 1 page loads, to guard against buyer drop-off from Shopify Checkout to Order Confirmation page.

  2. In addition to the initial checkout conversion, this field and your script can also track post-purchase offer conversion(s).

📝The only HTML tag allowed in this field is <script>. The script runs within a sandbox and isn't included on the main page, meaning you aren't able to add code to this field to customize your post-purchase offer page(s). Running the script within a sandbox ensures that the script is secure and is used for its intended purpose.

⚠️ After you add a post-purchase page script and verify that it's working properly, you also need to adjust your Order status page script to ignore events that are already captured by the post-purchase page script. More details here.

For example, you can use the following format for your scripts on the order status page:

{% if first_time_accessed == true and post_purchase_page_accessed == false %} 
// insert your tracking script
{% endif %}

Example: Facebook Pixel for post-purchase offer tracking

For natively integrated tracking found in the Online Store > Preferences section of your Shopify admin (Facebook Pixel and Google Analytics), those already capture events correctly on your post-purchase page for the initial order. Therefore, only event tracking for the post-purchase offer(s) themselves is needed to be added, if desired.

Below is an example script for the Facebook Pixel that can be used to track the "Purchase" event for post-purchase offer conversions only:

s.parentNode.insertBefore(t,s)}(window, document,'script',

fbq('init', 'YOUR_PIXEL_ID');

Shopify.on('CheckoutAmended', function(newOrder, previousOrder) {
const prevOrder = previousOrder.order || previousOrder;
const oldItems = prevOrder.lineItems.map(function (line) {
return line.id;

const addedItems = newOrder.lineItems.filter(function (line) {
return oldItems.indexOf(line.id) < 0;

if (addedItems.length === 0) return;

const newItem = addedItems[0];

fbq('track', 'Purchase', {
content_type: 'product_group',
content_ids: [newItem.product.id],
value: newItem.finalPrice,
num_items: newItem.quantity,
currency: newOrder.currency

📝Make sure to include your Facebook Pixel ID where YOUR_PIXEL_ID is shown in the example script above.

More example scripts can be found here in Shopify's official documentation.

Additional Resources from Shopify

Below are the additional resources from Shopify's official help documentation on this new field. It's highly recommended that you or your developer review each section to ensure correct implementation:

Did this answer your question?