Shopify
Step 1 : Create Offer
For Cookie less tracking, it is mandatory to include click ID parameter and token in the Offer URL and also for all the landing pages while creating an offer in Offer18 dashboard.
https://shopurl.com/?<YOUR-CLICK-ID-PARAMETER>={tid}Step 2 : Code Placement
From your Shopify admin, go to "Settings"
Navigate to "Customer events" » "Add Custom Pixel"
Enter the "Pixel name" and then click "Add pixel"

Remove the existing content from the "Code" section
Now, place the script given below in the "pixel editor" section
Ensure that the placeholders in the script are replaced with the actual information for the campaign. The placeholders are explained in the table provided below.
Placeholder
Explanation
<YOUR-CLICK-ID-PARAMETER>
This is the clickid parameter used while creating the offer.
<YOUR-POSTBACK-DOMAIN>
Postback domain of the user. (domain)
<YOUR-ACCOUNT-ID>
Offer18 account id of the user. (accountId)
<CAMPAIGN-ID>
Id of the offer. (offerId)
In case of shopify 'postbackType' must be 'ajax'
Go to Save

Custom Checkout Options
If you are using any of the custom checkouts listed below, you must use the corresponding conversion script specific to that third-party checkout.
Shiprocket
GoKwik
Razorpay Magic Checkout
Implement the below script in "theme.liquid" in your shopify account.
In your Shopify admin, go to Online Store » Themes.
Click “…” (three dots) » Edit code on your active theme.
Open the file: Layout »
theme.liquidNow, place the script given below in the just before the closing
</body>tag » Save
Place the below code in Customer Events in shopify account.
Collect Data
You can collect conversion data using various Offer18 Postback Parameters
Conversion Data
Offer18 Postback Parameter
Variable to use
Currency
currency
Total Amount of the Order
sale
Order ID of the Order
adv_sub5
Discount Coupons
coupon
Debug Mode
The user can enable debug mode by uncommenting 'window.Offer18WebSDK.activateDebugMode();'

Last updated