Home
Integrations Library
E-Commerce Integrations
Post-Purchase Tracking In Shopify
Post-Purchase Tracking In Shopify

SERIES:

Post-Purchase Tracking In Shopify

This article will explain the process of how to set up post purchases as upsell events inside Everflow.

The Goal

Your Shopify store is set up to offer customers additional products after their initial purchase is complete. You want to track these valuable upsells as a distinct conversion event in Everflow to properly reward the partners who drive them.

This guide walks you through the process of placing a script in your Shopify settings to track those post-purchase events.

Before You Begin

  • You need an active Shopify account with a post-purchase upsell app or feature enabled.
  • In Everflow, you must have an Offer ready with a specific Advertiser-Level Event created for the upsell (e.g., "Post-Purchase" or "Upsell").
Heads Up! On the Offer level, you must Allow Duplicates. Additionally, please contact the Everflow Support team to configure your account to deduplicate conversions by order_id + adv1. Without this setting, your upsell conversions will be tracked but flagged as invalid.
1 Gather Your Everflow Data First, you'll need three key pieces of information from your Everflow Offer page. Tracking Domain: Found on the Tracking card. Advertiser ID (aid): Found on the General card. Advertiser Event ID (adv_event_id): This is the ID for your specific upsell event, found on the Revenue & Payout card. In this example: Tracking Domain is https://www.serve-eflow-test.com Advertiser ID is 139 Advertiser Event ID is 26 Note On the Offer's Tracking card, ensure the Conversion Method is set to Javascript SDK. If it isn't, navigate to Edit -> Attribution and select it from the dropdown menu. 2 Prepare the Shopify Post-Purchase Code Here is the code snippet you will place in Shopify. Copy this code and replace the three placeholder values with the data you gathered in Step #1. INSERT_TRACKING_DOMAIN INSERT_ADVERTISER_ID INSERT_ADVERTISER_EVENT_ID
Code Snippet:
Example (Using our sample data):
3 Place the Code in Shopify In your Shopify admin dashboard, navigate to Settings -> Checkout Scroll down to the Order status page section Find the Additional scripts text box for the Post-purchase page Paste your completed code into this box Click Save

The Result

You're all set! When a customer completes an upsell after their initial purchase, the script will fire and send the conversion data to Everflow.

You will see it recorded under your designated upsell event, allowing you to accurately track performance and manage payouts for these high-value actions.