Overview

This guide will demonstrate how to set up an Offer in Everflow to be used with a CartHook integration, and how to track the sale by placing Everflow code in Carthook. If you need a more advanced setup and want to track each individual upsell event, please reach out to support@everflow.io for assistance.

__________________________________________________

Setting up the Offer in Everflow

Step #1
First, follow the steps to connect the relevant Shopify accounts. For more information about setting up and connecting Shopify accounts - [Click Here]

Step #2

Navigate to Offers - Add to add a new Offer. Use the Shopify store URL as the Base Destination URL.

Be sure to turn on Direct Linking and select HTTPS iframe Pixel (with Transaction ID) as the Conversion Method on the Tracking & Controls tab.

__________________________________________________

Connecting CartHook to Everflow

Step #1

Make sure the Shopify store is integrated in CartHook.

Step #2

Create your funnel. Then, select Global Code from the drop-down in the upper right corner.

Step #3

Use the following code, and replace the placeholders as shown below.

var amount = window.chData.order.subtotal_price;
var adv2 = [];
for (i=0; i < window.chData.order.line_items.length; i++) {
adv2.push(window.chData.order.line_items[i].quantity, window.chData.order.line_items[i].sku)
};

(function() {
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "https://INSERT_YOUR_DOMAIN/scripts/sdk/everflow.js";
script.onload = function() {
EF.conversion({
aid: INSERT_ADVERTISER_ID,
amount: amount,
order_id: window.chData.order.order_id,
adv1: window.chData.order.order_number,
adv2: adv2,
coupon_code: window.chData.order.coupon,
parameters: {
'email': window.chData.order.customer ? window.chData.order.customer.email : ''
}
});
};
document.getElementsByTagName("head")[0].appendChild(script);
}
)();
  • INSERT_ADVERTISER_ID - Replace with the Advertiser ID that owns the Offer. Example: For the Advertiser "Happy Hour (2)" you would use "aid: 2,"
  • INSERT_YOUR_DOMAIN: Replace with the tracking domain on the Offer.

Step #4

Place the code in CartHook.

_____________________________________________________________

NEED HELP? OUR CUSTOMER SUCCESS TEAM IS HERE FOR YOU!

We've assembled a superstar team of industry veterans that are available around the clock to make sure that your issues are resolved and questions are answered. You can reach out any time in-platform via Chat or by support@everflow.io.

Did this answer your question?