Carthook Tracking Setup

Master Tag Installation

Before installing anything in Carthook, please install the ShareASale Master Tag in your Shopify admin:

Navigate to the sidebar >> Online Store button >> Themes >> Actions drop-down >> Edit code >> Find the theme.liquid file, usually under Layout section. Directly above the closing </head> tag in this file, copy and paste the code below into it, then click the "Save" button in the top-right corner.

<script src="<https://www.dwin1.com/!!!!!.js"> type="text/javascript" defer="defer"></script>

Where !!!!! is your Master Tag ID. Replace the !!!!!! in the code with your Master Tag ID.

For merchants in the Setup Wizard, you can find this within Step 4 (Tracking Code Installation).

For live merchants, you can find this by navigating to MY ACCOUNT > ACCOUNT DETAILS
Account Details: https://account.shareasale.com/m-account.cfm

If you cannot locate your Master Tag ID, or would like to verify that you have one, please submit a ticket to our ShareASale support staff.

Conversion Tracking Pixel Installation

In your Carthook admin, visit Navigation >> Global Code and scroll down to Thank You Page. Click the tab labeled Scripts (JS) and paste in the following code. After it's in place, click Save/Publish.

Replace the XXXXX in the code with your ShareASale Merchant ID. You can find this at the top-left of your ShareASale account when you are logged in.

var sas_order = window.chData.order, sas_mid = XXXXX, sas_tracking = sas_order.order_number, sas_currency = sas_order.currency, sas_amount = sas_order.subtotal_price - sas_order.total_coupons_amount, sas_skulist = new Array(), sas_pricelist = new Array(), sas_quantitylist = new Array(), sas_coupon = sas_order.coupon ? sas_order.coupon.coupon_code : '', sas_lineitems = sas_order.last_charged_line_items, sas_pixel = new Image(); for (let x of sas_lineitems) { sas_skulist.push(x.sku); sas_pricelist.push(x.discounted_price); sas_quantitylist.push(x.quantity); } sas_pixel.src = "<https://www.shareasale.com/sale.cfm?tracking="> + sas_tracking + "&amount=" + sas_amount + "&merchantID=" + sas_mid + "&v=carthook1.1&transtype=sale&skulist=" + sas_skulist + "&pricelist=" + sas_pricelist + "&quantitylist=" + sas_quantitylist + "&couponcode=" + sas_coupon; sas_pixel.id = "_SHRSL_img_1"; sas_pixel.height = 1; sas_pixel.width = 1; document.body.appendChild(sas_pixel); var masterTag = document.createElement("SCRIPT"); masterTag.defer = true; masterTag.src = "<https://www.dwin1.com/19038.js";> document.body.appendChild(masterTag);

Testing

Now that your tracking tags have been installed, we will need to test that everything is working as expected. To do this, we’ll simulate an Affiliate referred purchase by clicking a ShareASale test link and then running a purchase on your store. If the test is successful we’ll see a record appear in your ShareASale console, which we will VOID so that it doesn’t debit commissions from your account.

If you were emailed a link to this document, a test link may have been provided to you. If it wasn’t, you can obtain one from your account by clicking here.

NOTE: If you do not click the test link your order will not track.

The test link should direct you to your own store. Once there, please purchase any item in your store. Sometimes Merchants will have a test item worth $1.00 sale price, but above $0.00 minimum.

After the purchase is complete, navigate to www.shareasale.com in your browser and log into your account. Click Reports and then click Transaction Details from the drop-down menu.

Filter the report for Affiliate ID 178 using the panel on the left. The filtered view should now show your test purchase as an entry with today’s date.

If the order tracked successfully…

Your account is now ready to use ShareASale with your store. Please contact us at ShareASale@ShareASale.com for further information about:

  • Product specific commissions (offer different commissions by product)

  • New customer incentives (offer commission bonuses for new customers)

  • Exclusive coupon codes (used for tracking conversions without link clickthrough)

If the order does not show up in the Transaction Details Report…

Please verify that you have completed all of the steps as instructed. Common mistakes include not entering the correct Merchant ID in your tracking code and forgetting to click the test link.

If after verifying all of these steps your tracking still does not work please contact our support team at ShareASale@ShareASale.com.

Copyright ShareASale 2021