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
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.
Before you begin
- You have an AnyTrack account with a paid subscription
- You have an active ShareASale affiliate account
- The AnyTrack Tracking Tag is installed on your website
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
| 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. |
ImportantShareASale short links are NOT SUPPORTED and won't be tracked.
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
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
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
- 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
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
This section will enable you to validate the main aspects of your conversion tracking setup.
Install the AnyTrack Pixel Helper Extension
Install the AnyTrack Pixel Helper Chrome extension to verify the AnyTrack Tag is installed on your website. It also shows connected ad networks and browser-side events. Learn more.
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
Reminder about AutoTag:
AutoTag is a function that is enabled by default through the AnyTrack Tracking Tag, and that appends
afftrack&click_iddata to affiliate links. Learn more about AutoTag.
- 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 GroupTracking Group refers to the integration's technology group. For ShareASale, the Tracking Group value is
shareasale.
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"
}FAQ and Troubleshooting
FAQ was last reviewed on 2026-03-09
Direct link trackingTo track direct linking campaigns, follow the direct link tracking setup guide.
Take these steps to troubleshoot errors you encounter in AnyTrack
-
General troubleshooting
- Verify that your
Tracking Tagis set in theheadsection of your website. - If you're on the free plan, verify that you didn't reach the monthly traffic limit and upgrade if needed.
- Verify that your
-
Conversion sources
When you are not tracking conversions, or most conversions trigger an error, follow the guidelines below.
Before contacting supportPlease inspect the conversion log to see what type of errors you are getting and try to fix the integration by following these troubleshooting guidelines.
-
Native integrations refer to platforms that are predefined in the catalog and should provide an error-free data flow. The most common error is that theNative integrationsclick_idis unknown or missing. It happens when AutoTag could not be activated.- Check that your links are not hidden behind some JavaScript or double redirects.
- Check that the links are in a standard
aelement. - Try to manually set the tracking group attribute (check the integration guidelines).
- Check whether your offers are not getting traffic from websites where the AnyTrack Tag isn't set.
- If you just installed AnyTrack, errors might be from traffic that wasn't tracked by AnyTrack.
-
Conversion data doesn't trigger an error 🔴, but is not validated 🟢:
- Check that the Postback URL you've set in the integration matches the pre-defined Postback URL we provide.
- Copy the Event Reference from the Conversion Event Log and contact support.
-
You're not getting any conversions:
- Check that the Postback URL is set and active in your platform.
- Check that you're passing the correct AutoTag
afftrackparameter to the offer link. - Check that the Postback URL is correctly inserted in the custom integration.
Updated 13 days ago
