Skip to content

ShareASale Integration

The article provides an overview of the ShareASale and AnyTrack integration, which simplifies conversion tracking for affiliates by sending conversion data directly to AnyTrack. This data is then forwarded to advertising platforms like Google Ads and Facebook `Conversion API` in real-time, enabling affiliates to gain accurate insights for better ad spend decisions. The integration is user-friendly, requiring no coding, and includes features such as real-time conversion tracking, event mapping, and AutoTagging for efficient data management.

ShareASale and AnyTrack have teamed up to simplify the process of tracking conversions. With this integration, ShareASale affiliates can now send their conversion data directly into AnyTrack’s platform where it is forwarded to various third-party advertising platforms such as Google Ads, Facebook Conversion API and TikTok API in real-time. This allows them to get accurate insights on which campaigns are performing well so they can make more informed decisions about future ad spend.

How does the ShareASale AnyTrack integration work:

Section titled “How does the ShareASale AnyTrack integration work:”
  1. Traffic: When visitors land on your website, AnyTrack collects traffic source data and First Party data.
  2. Engagements: When visitors click on your ShareASale affiliate links, AnyTrack does a few things:
    1. Collects granular data tied to the OutboundClick.
    2. Triggers Event Tracking API requests to your Tracking Tags and analytics.
  3. Conversions: When visitors convert on the merchant’s website, AnyTrack receives real time conversion data through Postback URL.
  4. Attribution: AnyTrack processes the conversion data and reports it across various reporting sections of the AnyTrack Dashboard.
  5. Conversion API: AnyTrack then sends your conversions to your Ad Platforms’ Conversion API so you can feed your ad platform’s Machine Learning, AI and automatic optimization according to 100% of your conversion data.
ReferenceValueInformation
Tracking GroupshareasaleThe Tracking Group reference can be used to activate AutoTag .
Subid ParameterafftrackThe Subid Parameter used to pass the AnyTrack click_id.
Tracking MethodPostback URL-
Supported linksStandard and deep links.

Important

ShareASale short links are NOT SUPPORTED and won’t be tracked.

Event NameDetailsData Source
OutboundClickWhen a visitor clicks on ShareASale offer links.AnyTrack JS Tag
LeadWhen a free registration is recorded in ShareASale.Postback URL
PurchaseWhen a user generates a commission in ShareASale.Postback URL

The Postback URL is fully pre-defined and ready to be implemented with your ShareASale account.

https://t1.anytrack.io/hBtoE3hN/collect/shareasale?afftrack=!!afftrack!!&transtype=!!transtype!!&merchantID=!!merchantID!!&orderNumber=!!orderNumber!!&transID=!!transID!!&amountOfSale=!!amountOfSale!!&commission=!!commission!!&transDate=!!transDate!!

Step #1: Add ShareASale to your AnyTrack Account

Section titled “Step #1: Add ShareASale to your AnyTrack Account”
  1. Go to the Integration Catalog, search for ShareASale.

  2. Now click on the ShareASale card and then click on Install.

  1. Copy the predefined Postback URL.
  2. Send it to your affiliate manager to set it as the global destination for your ShareASale postback notifications.
  3. Save.

Step #3: Adjust the Conversion Event Mapping

Section titled “Step #3: Adjust the Conversion Event Mapping”

The Event Mapping allows you to define which events to track and map them to Conversion Events you will forward to your Ads Integrations (e.g., Facebook Conversion API).


This section will enable you to validate the main aspects of your conversion tracking setup.

Since tracking starts when visitors click on offer links, verify that your links are tracked and AutoTagged with the AnyTrack click_id.

To do so you can simply load your website and hover on one of your ShareASale links.

  • Default: By default, AnyTrack automatically identifies and AutoTags ShareASale links found on your website. For example, if you’re looking for a good WordPress hosting company, you must consider WPEngine (warning: Affiliate Link).
  • AutoScan: AnyTrack scans links that are embedded in redirects plugins and AutoTags them accordingly. See hover on the link below.

This is a link to WPEngine Offer Link. (WP Engine affiliate program runs on ShareASale).

📘 AutoScan example

  • Internal redirect link: https://anytrack.io/links/wpengine
  • Final URL: https://shareasale.com/r.cfm?b=394686&u=1011620&m=41388&urllink=&afftrack=
  • AutoTagged URL: https://anytrack.io/links/wpengine?afftrack=w23xvjXjemr5dY7898ztVmpSGxqLWXI6ab
  • Manual:
    • Tracking Group Attribute: You add the tracking group attribute to links according to their tracking requirements. For example: data-tracking-group="shareasale" or rel="shareasale". More about Tracking Group.
    • Click ID Token: Manually append the afftrack parameter: &afftrack=--CLICK-ID-- to the offer link.

Once the links are set up, you can check in your ShareASale account reports and see whether the afftrack parameters are passed to the offer links.

Here is an example of how you would manually update links from shareasale:

<a href="https://shareasale.com/r.cfm?b=394686&u=1011620&m=41388&urllink=&afftrack=" data-tracking-group="shareasale">Hover on the ShareASale Demo Link to see the AnyTrack click_id</a>

📘 Tracking Group

Tracking Group refers to the integration’s technology group. For ShareASale, the Tracking Group value is shareasale.

To validate your setup, wait for a conversion or trigger a test conversion yourself and inspect the conversion logs.

ShareASale conversion payload example

{
"amountOfSale": "79",
"orderNumber": "2617207",
"merchantID": "87575",
"transtype": "SALE",
"transID": "198198598",
"transDate": "2023-05-21 00:57:45",
"afftrack": "Zojr5qPF3fVk6VlfJbAcGeuHnxkcOst2gr",
"commission": "39.5"
}

FAQ and Troubleshooting

FAQ was last reviewed on 2026-06-10

Can I import past conversions into AnyTrack?
No. AnyTrack can only ingest conversions that have been triggered following a visitor session on your website.
Can I run direct linking campaigns?
Yes, but this requires a custom setup. Refer to the direct link tracking article in the AnyTrack Knowledge Base for details.
Can I use a different subid parameter than the afftrack parameter?
No.
Can I track conversions without the click_id?
No. The click_id passed to the ShareASale links is required to track conversions.
The Conversion Event Name is not what I am expecting. How can I change it?
You can update the Event Mapping in the Integration page.
Why am I getting errors in the conversion logs?
1. You are using ShareASale short URLs. 2. Some of the pages where you are promoting offers don't carry the AnyTrack tag. 3. AutoScan is being blocked by your host. You can see this information in your property settings.

📘 Direct link tracking

To track direct linking campaigns, follow the direct link tracking setup guide.