Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

ShareASale’s tracking involves two 'tags' or 'pixels' which are snippets of code installed specifically on the lead confirmation 'thank you' page and in the header of every other site page. The first tag is for tracking conversions (i.e. leads) and the second for assisting with Affiliate click attribution accuracy in certain browsers.

...

Code Block
<img id='_SHRSL_img_1' src='https://www.shareasale.com/sale.cfm?tracking=CustomerID&amount=0.00&merchantID=XXXXX&transtype=lead' width='1' height='1'>
<script src='https://www.dwin1.com/19038!!!!!.js' type='text/javascript' defer='defer'></script>

In the above pixel example, the following <img src='…'> tracking parameters are static and should be the same for all orders. The bold section (below) is the value.

merchantID=XXXXX

Your Merchant ID (XXXXX), which can be found in the top left corner of your ShareASale account.

transtype=lead

The transtype parameter is simply set to ‘lead’ for all lead tracking pixels.

amount=0.00

The amount parameter must be passed with a hard-coded zero amount formatted to two decimal places.

In addition to the three static tracking parameters above, the pixel must include another dynamically-populated tracking variable (below):

tracking=CustomerID

The tracking parameter must always be populated with a unique record locator. The value reported here should be able to be used to locate records in your system if there is a discrepancy in the tracking data recorded by ShareASale or more likely, if you need to cancel or edit a lead commission.

Note: Dynamically populating <img> tracking pixel parameters is accomplished through macros, variables, and/or data layer attributes your site or tag manager provide. They are always delimited by an ampersand (&parameter1=value1&parameter2=value2).

Speak to your tech/dev team if you are unsure how to populate any of the documented tracking parameters.

...

In addition to the parameters in the section above, it is also possible to pass additional data related to the order into the ShareASale system. Each of these parameters can be appended to the pixel string with standard query string ampersands (&).

xtype=type

The Merchant Defined Type can be used to pass a value for type which can then be accessed from Tools >> Commission Rules to create particular commission structures. This is useful if there is data ShareASale should receive that does not neatly fit into another parameter’s purpose.

perlead=T

If necessary, a commission rate override for this sale transaction. This override can still be overridden by other higher commission arrangements such as Commission Rules. Values of T should be numbers, and will be interpreted as a flat amount.

autovoid=V

The autovoid parameter can be appended and set to 1 in order to allow a record to be recorded in ShareASale but not pay any commission to the Affiliate. This should only be used in multi-network tracking situations. Please contact our support team for further information.

Install the Tracking Code

...

  • Be careful not to accidentally place the code inside another existing section of code that might become broken.

  • Don’t place it within any <noscript> tags. These only execute if JavaScript is disabled in the browser (rare for users).

  • Make sure the secondary <script src='https://www.dwin1.com/19038!!!!!.js' type='text/javascript' defer='defer'></script> tag is underneath the pixel <img> tag being populated with lead data.

Info

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). If you are live, 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

Master Tag Installation

ShareASale requires a second tag that should be embedded on every page of your site. Usually this is accomplished by including the tag in a common global file, like the header or footer template. Alternatively, cart systems will often have a dedicated spot in their admin for including code like this, as it’s fairly commonly required for analytics platforms like Google Analytics.

...

Code Block
<script src='https://www.dwin1.com/19038!!!!!.js' type='text/javascript' defer='defer'></script>
Info

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

1. Find the file, template, or section of your cart admin that allows you to place code that will be included on every page of the site.

...

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.

...