Skip to content

AutoTag Setup

Learn how to activate the AnyTrack AutoTag feature for cross-domain conversion tracking with the data-tracking-group and rel attributes. Includes setup instructions for different tracking scenarios.

AutoTag is AnyTrack’s automatic conversion tracking feature that helps you track user interactions across different domains and platforms. It recognizes most links on its own. This page covers the cases where you tell it what to do, by assigning a tracking group to a link with an HTML attribute.

AutoTag automatically generates tracking parameters when users click on tagged links, enabling accurate attribution and conversion tracking across domains. This is essential for:

  • Cross-domain tracking: Following users as they navigate between different websites
  • Conversion attribution: Understanding which traffic sources lead to actual conversions
  • Campaign performance: Measuring the effectiveness of your marketing campaigns
  • atrefid: AnyTrack’s referral ID parameter for cross-domain tracking
  • atclid: AnyTrack’s click ID parameter used in property settings
  • Tracking group: The rule set that tells AnyTrack which parameter to append to a link. Tracking group names are always lowercase.
  • data-tracking-group attribute: The attribute that assigns a tracking group to a link or form
  • rel attribute: HTML attribute that specifies the relationship between the current page and the linked resource

Most links need no attribute at all. The Tracking Tag checks the following in order and stops at the first match:

OrderWhat the Tracking Tag checksNotes
1data-tracking-group="<group>"Set on the link or form, or inherited from a parent element
2rel="<group>" on an <a> tagSpace-separated values are read left to right. nofollow and sponsored are skipped
3The destination URLRecognized Integration Catalog networks are matched automatically
4A tgid-<group> classSet on the link or a parent element

Because data-tracking-group is checked first, it overrides everything else on that link. It also works on forms, where rel does not. Use rel when you cannot add a data attribute to the markup.

Two values are reserved and cannot be assigned by attribute: custom and unknown.

Method 1: Cross-Domain Tracking with the anytrack Tracking Group

Section titled “Method 1: Cross-Domain Tracking with the anytrack Tracking Group”

This method generates an atrefid parameter for tracking users across different domains.

When to use: When you send visitors to another domain that also runs AnyTrack, and the destination is not already covered by your Cross-Domain Tracking settings.

When not to use: On affiliate links to networks in the Integration Catalog. Those are recognized by URL and already receive the network’s own SubID parameter, such as tid for ClickBank. Assigning the anytrack group overrides that and sends atrefid instead, which the network cannot read.

Implementation:

<a href="https://utmhq.com/" data-tracking-group="anytrack" title="Create a UTM tracking template">
Create a UTMHQ Tracking Template
</a>

The rel attribute assigns the same tracking group:

<a href="https://utmhq.com/" rel="anytrack" title="Create a UTM tracking template">
Create a UTMHQ Tracking Template
</a>

Rendered example — the parameter is appended on a site running the Tracking Tag, not on this documentation page:

Result: When clicked, this link automatically appends the atrefid parameter to track the visitor’s journey to the external domain.


Method 2: Cross-Domain via Property Settings

Section titled “Method 2: Cross-Domain via Property Settings”

This method generates an atclid parameter and is configured through your AnyTrack property settings rather than the HTML rel attribute.

When to use: When you have multiple links to the same domain and want to manage tracking centrally through your AnyTrack dashboard.

Implementation:

<a href="https://utm.new" title="Create a UTM tracking template">
Create a UTM Tracking Template
</a>

Rendered example — the parameter is appended on a site running the Tracking Tag, not on this documentation page:

Setup required: Configure the target domain in your AnyTrack property settings to enable automatic atclid generation.


Method 3: Affiliate Network Integration (HasOffers)

Section titled “Method 3: Affiliate Network Integration (HasOffers)”

This method is specifically designed for HasOffers affiliate network tracking.

When to use: When a HasOffers link is not recognized automatically — typically because it sits behind a redirect or a vanity path rather than the network’s standard aff_c?offer_id= URL format.

Implementation:

<a href="https://example.foo/goto/hasoffers" data-tracking-group="hasoffers" title="HasOffers demo link">
HasOffers Demo Link
</a>

The rel attribute assigns the same tracking group:

<a href="https://example.foo/goto/hasoffers" rel="hasoffers" title="HasOffers demo link">
HasOffers Demo Link
</a>

Rendered example — the parameter is appended on a site running the Tracking Tag, not on this documentation page:

Result: The Click ID is appended as the aff_click_id and aff_sub5 parameters, which HasOffers-based networks store and return in their postbacks.

  1. Choose your method: Select the AutoTag method that best fits your tracking needs
  2. Test your implementation: Verify that tracking parameters are being generated correctly
  3. Monitor performance: Use your AnyTrack dashboard to analyze conversion data and attribution

If you’re unsure which method to use or need assistance with setup, see the AutoTag article or contact support.

AutoTag FAQs

FAQ was last reviewed on 2026-07-29

What does AutoTag do?
AutoTag automatically generates tracking parameters when users click on tagged links, enabling accurate attribution and conversion tracking across domains without requiring complex manual setup.
Does AutoTag work with all affiliate networks?
AutoTag works with the affiliate networks in the AnyTrack Integration Catalog — links to recognized networks are detected and tagged automatically, with no attribute needed. For platforms outside the catalog, assign a tracking group with data-tracking-group or rel, or append the --CLICK-ID-- token manually.
Do I have to add an attribute for AutoTag to work?
No. AutoTag recognizes links to the networks in the Integration Catalog from the destination URL alone. The data-tracking-group and rel attributes are for links AutoTag cannot identify on its own, or for links where you want to override the group it would pick.
Can I disable AutoTag for specific links?
Not with the rel attribute. The rel and data-tracking-group attributes choose which tracking group a link uses — they do not switch tagging on or off, so removing rel does not stop AnyTrack from tagging a link it recognizes by URL. To exclude a link, add class="at-do-not-track" to it, or to a container element to exclude everything inside it. See Custom Event Triggers.
How does AutoTag handle cross-domain tracking?
AutoTag appends tracking parameters like atrefid (for Method 1) or atclid (for Method 2) to your destination URLs. These parameters allow AnyTrack to recognize returning visitors and attribute conversions across different domains.