Link Tracking
Learn how AnyTrack tracks outbound link clicks automatically using AutoTrack, appends SubIDs with AutoTag, and enables redirectless tracking for Facebook and Google Ads compliance. Covers link attributes for passing event data to Conversion APIs.
Link tracking is the automatic capture of every outbound link click on your website by the AnyTrack Tracking Tag, generating a unique Click ID that travels with the visitor to third-party destinations. It connects the click to any downstream conversion — affiliate sale, partner checkout, external payment — so revenue attributes back to the original ad even when the conversion happens off-site.
When a visitor clicks an affiliate link, product link, or external checkout URL, AnyTrack fires an OutboundClick event and appends the Click ID to the destination URL. This is what makes server-side affiliate attribution work end-to-end.
Before you begin
- The Tracking Tag is installed on your website
- You have an active AnyTrack property
- Outbound links use standard HTML anchor markup
How Link Tracking Works
The Tracking Tag monitors all links on your page. When a visitor clicks an outbound link:
- AnyTrack fires an
OutboundClickevent - The event is forwarded to all connected ad platforms via Conversion API
- AutoTag appends the correct SubID parameter for the destination platform
- The Click ID travels with the visitor, enabling server-side conversion matching
No code changes needed — install the Tracking Tag and link tracking runs automatically.
Redirectless Tracking
Traditional affiliate tracking uses redirect URLs that get flagged by Facebook and Google as cloaking. Redirectless tracking eliminates redirects entirely — visitors go straight from your landing page to the offer, while AnyTrack captures full attribution data client-side.
This eliminates click loss from browser blocking, keeps ads compliant, and maintains accurate attribution.
Link Attributes
Add data attributes to your links to pass event data (payout, brand, label) to your analytics and Conversion APIs:
<a href="https://example.com/offer"
data-payout="2.1"
data-brand="nike"
data-label="hero-button"
data-tracking-group="impact">
Try It Free
</a>| Attribute | Example | Purpose |
|---|---|---|
data-payout | 2.1 | Event value passed to analytics |
data-brand | nike | Brand or product name |
data-label | button | Label for the element |
data-tracking-group | impact | Appends atrefid=clickIdValue to the URL |
Server-Side Conversions
Link tracking is the foundation for server-side tracking. When the Click ID travels with the visitor to an affiliate network or external checkout, the platform can return it via webhook or postback — connecting the offline conversion back to the original ad click.
FAQ & Troubleshooting
FAQ was last reviewed on 2026-05-13
Updated 10 days ago
