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 Integration Overview
Section titled “ShareASale Integration Overview”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:”- Traffic: When visitors land on your website, AnyTrack collects traffic source data and First Party data.
- Engagements: When visitors click on your ShareASale affiliate links, AnyTrack does a few things:
- Collects granular data tied to the
OutboundClick. - Triggers Event Tracking API requests to your Tracking Tags and analytics.
- Collects granular data tied to the
- Conversions: When visitors convert on the merchant’s website, AnyTrack receives real time conversion data through Postback URL.
- Attribution: AnyTrack processes the conversion data and reports it across various reporting sections of the AnyTrack Dashboard.
Conversion API: AnyTrack then sends your conversions to your Ad Platforms’Conversion APIso you can feed your ad platform’s Machine Learning, AI and automatic optimization according to 100% of your conversion data.
Technical details
Section titled “Technical details”| Reference | Value | Information |
|---|---|---|
| Tracking Group | shareasale | The Tracking Group reference can be used to activate AutoTag . |
| Subid Parameter | afftrack | The Subid Parameter used to pass the AnyTrack click_id. |
| Tracking Method | Postback URL | - |
| Supported links | Standard and deep links. |
❗ Important
ShareASale short links are NOT SUPPORTED and won’t be tracked.
Standard Conversions
Section titled “Standard Conversions”| Event Name | Details | Data Source |
|---|---|---|
OutboundClick | When a visitor clicks on ShareASale offer links. | AnyTrack JS Tag |
Lead | When a free registration is recorded in ShareASale. | Postback URL |
Purchase | When a user generates a commission in ShareASale. | Postback URL |
The ShareASale Postback URL
Section titled “The 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!!Setup Guide
Section titled “Setup Guide”Step #1: Add ShareASale to your AnyTrack Account
Section titled “Step #1: Add ShareASale to your AnyTrack Account”-
Go to the Integration Catalog, search for ShareASale.
-
Now click on the ShareASale card and then click on Install.
Step #2: Connect your ShareASale account
Section titled “Step #2: Connect your ShareASale account”- Copy the predefined Postback URL.
- Send it to your affiliate manager to set it as the global destination for your ShareASale postback notifications.
- 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).
Validate your integration
Section titled “Validate your integration”This section will enable you to validate the main aspects of your conversion tracking setup.
Link tracking
Section titled “Link tracking”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.
AutoTag Methods
Section titled “AutoTag Methods”- 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"orrel="shareasale". More about Tracking Group. - Click ID Token: Manually append the
afftrackparameter:&afftrack=--CLICK-ID--to the offer link.
- Tracking Group Attribute: You add the tracking group attribute to links according to their tracking requirements. For example:
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.
Conversion Tracking
Section titled “Conversion Tracking”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"}Related Resources
Section titled “Related Resources”FAQ and Troubleshooting
FAQ was last reviewed on 2026-06-10
Can I import past conversions into AnyTrack?
Can I run direct linking campaigns?
Can I use a different subid parameter than the afftrack parameter?
Can I track conversions without the click_id?
The Conversion Event Name is not what I am expecting. How can I change it?
Why am I getting errors in the conversion logs?
📘 Direct link tracking
To track direct linking campaigns, follow the direct link tracking setup guide.