ShareAsale integration

Learn how to integrate ShareASale with AnyTrack so you can instantly track and attribute your conversions across your marketing tools, analytics and ad networks.

Get your postback URL

  1. Select ShareASale

  2. Copy the postback URL

  3. Send it to your affiliate manager

  4. HTTP Request method: POST

ShareASale doesn't provide a self-service interface to set your the postback URL.

ShareASale Postback URL format:

https://t1.anytrack.io/IqbY3nLd/collect?click_id=!!afftrack!!&conversion_type=!!transtype!!&advertiser_id=!!merchantID!!&advertiser_ref=!!orderNumber!!&transaction_id=!!transID!!&total_revenue=!!amountOfSale!!&commission=!!commission!!&conversion_time=!!transDate!!

Postback URL parameters

Query parameterMacroExample Values

click_id

!!afftrack!!

8qiZTscK1ML5rOebe8YEyq

commission

!!commission!!

23.00

brand_name

!!merchantID!!

213111

transaction_id

!!transid!!

10810238123708

conversion_type

!!transtype!!

sale, lead

Good to know

The Postback parameters are listed here for information purpose. The ShareAsale Postback URL is provided with built-in parameters and macros so you can simply copy/paste the URL as provided in your AnyTrack account.

Parameters used to append the click_id Value

This is a shareasale link

https://shareasale.com/r.cfm?b=1379776&u=1011620&m=41388&afftrack={click_id}

Link attributes are used in your HTML code to give additional information about the links posted on your site.

<a class="diggera" data-table="top10table" data-action="cta button" 
data-page="page name" data-brand="lenovo" data-tracking-group="shareasale" 
data-position="1" href="https://shareasale.com/r.cfm?b=1379776&u=1011620&m=41388" 
target="_blank"></a>

In this example, the link posted is the one provided by the affiliate network. However, since some marketers prefer to use their own redirect URLs to hide the real affiliate links, AnyTrack will recognize the affiliate link according to the attributes given to the URL data-tracking-group="shareasale"

<a class="diggera" data-table="top10table" data-action="cta button" 
data-page="page name" data-brand="lenovo" data-tracking-group="shareasale" 
data-position="1" href="https://blog.anytrack.io/goto/lenovo" 
target="_blank"></a>

During the click event, AnyTrack will automatically append the correct querystring and parameter afftrack=0a98sd0fas8df0asd8f to the link:

https://blog.anytrack.io/goto/lenovo?afftrack=0a98sd0fas8df0asd8f

And during the redirect, the query string and parameter will be automatically appended to the real affiliate link:

https://shareasale.com/r.cfm?b=1379776&u=1011620&m=41388&afftrack=0a98sd0fas8df0asd8f

These link attributes allow AnyTrack to tie links with affiliate networks.

Link attribute

Value

data-tracking-group

shareasale

data-label

brandName

data-linkid

brandName

Last updated

Logo

Copyright Anytrack 2019