Overview
This article goes through how to implement post-purchase tracking in Shopify that occurs after the initial purchase. These upsells will be tracked as a separate event.
Please note: You need to allow all duplicates at the Offer level, and you must have your account configured by someone on the Everflow Support team to dedupe conversions by order_id + adv1. The upsells will still track to Everflow if you do not set this up correctly, but they will appear under invalid conversions.
Prerequisites
- Active Shopify Account with Post Purchase products enabled
- Everflow Offer Created With Post-Purchase or Upsell Advertiser Level Event created
Step-By-Step
Step #1: Everflow Offer Setup
- First, you must set up an Advertiser Level Event, and tie it to the appropriate Offer Level Event.
Step #2: Everflow Data Prep
- Copy your Tracking Domain, Advertiser ID (aid), and Advertiser Event ID (adv_event_id) so that you may place it in the code later.
- You can find the Advertiser ID (aid) on the General card, and the Advertiser Event ID (adv_event_id) on the Revenue & Payout card. In this example, the aid is 139 and the adv_event_id is 26.

- Scroll down to locate your Tracking Domain on the Tracking card. In this example, it is https://www.serve-eflow-test.com.

- Please note that your Tracking card could look different if Javascript SDK is not selected as the Conversion Method. If so, edit the the Conversion Method before moving on by navigating to Edit > Attribution > Conversion Method: Javascript SDK.
Step #3: Shopify
- Navigate to Settings > Checkout inside Shopify.


Step #4: Shopify Order Status Code
- Replace INSERT_TRACKING_DOMAIN and INSERT_ADVERTISER_ID with the proper values you copied in Step 2 to complete the code below:
Here is an example of what the finished code looks like using the example values from Step #2.
- In Shopify, navigate to Shopify > Settings > Checkout and paste that code under Additional Scripts on the Order status page.

Step #5: Shopify Post-Purchase Code
- Replace INSERT_TRACKING_DOMAIN, INSERT_ADVERTISER_ID and INSERT_ADV_EVENT_ID with the proper values you copied in Step 2 to complete the code below:
Here is an example of what the finished code looks like using the example values from Step #2.
- In Shopify, navigate to Shopify > Settings > Checkout and paste that code under Additional Scripts on the Post-purchase page.
