Use AnyTrack Click ID (atclid)

Learn how to generate, capture, and use the AnyTrack click ID (atclid) for accurate conversion tracking and attribution modeling with custom integrations and webhooks.

Overview

Custom platforms don't automatically send attribution data. When conversions happen in your proprietary CRM, custom checkout system, or any platform outside AnyTrack's 300+ integrations, attribution breaks—Facebook sees zero conversions from ads driving real sales, Google stops optimizing campaigns that actually work, and ROAS calculations become guesswork.

The AnyTrack Click ID (atclid) solves this. Capture it when visitors land on your site, attach it to customer records in your system, then include it when sending conversion webhooks to AnyTrack. That identifier connects the CRM sale back to the Facebook ad that started the journey—restoring attribution accuracy and feeding ad platforms the conversion signals they need.

What is the AnyTrack Click ID (atclid)?

The atclid is a unique identifier generated by the AnyTrack Tracking Tag when a visitor clicks on your ads and lands on your website. This ID is essential for:

  • Conversion tracking: Linking sales and leads back to specific ad clicks
  • Attribution modeling: Understanding which ads drive the best results
  • Campaign optimization: Providing accurate data to improve ad performance

How to Generate, Retrieve, and Use atclid

Step 1: Generate the atclid

The atclid is automatically generated by the AnyTrack Tracking Tag installed on your website. To see how this works, navigate to any webpage where the AnyTrack Tag is installed and run this code in your browser's console:

var atclid = AnyTrack('atclid');
console.log(atclid);
The click id shows in the Console in the Developer Tools

The click id shows in the Console in the Developer Tools

Step 2: Capture the atclid

You need to capture the atclid so you can include it in your conversion data later. You can use Google Tag Manager (GTM) scripting or other automation tools to capture this value.

Here's an example using JavaScript to send the atclid to an external platform via WebHook:

AnyTrack(function() {  
  var atclid = AnyTrack('atclid');  
  fetch("https://browserhook2.free.beeceptor.com", {  
    method: "POST",  
    headers: { "Content-Type": "application/json" },  
    body: JSON.stringify({ atclid: atclid })  
  });  
});

After running this code, your WebHook endpoint will receive the atclid value. You can use automation platforms like Zapier or Make to capture this data and include it in your conversion tracking workflow.

Send the atclid value to an external platform.

Send the atclid value to an external platform.

Step 3: Send conversion events with atclid

  1. Create a Custom Integration endpoint in your AnyTrack account
  2. Send conversion events that include the captured atclid value
  3. Include additional event attributes to improve attribution modeling and ad optimization

For better conversion tracking results, include as many relevant event attributes as possible. This helps train ad network algorithms and improves targeting effectiveness. Check our list of supported event attributes.

The events log of the Custom Integration shows the events received and their atclid.

The events log of the Custom Integration shows the events received and their atclid.

Troubleshooting: "No Matches Found" Error

If you see "No match(es) found" or "Missing click_id" errors in your Events Log, it means the atclid value wasn't included in your conversion data.

Why this error occurs:

  • The conversion data sent to AnyTrack doesn't include the required atclid
  • Without the click ID, AnyTrack cannot link the conversion to a specific website visitor
  • The system cannot determine which ad generated the conversion
  • The conversion event cannot be processed for attribution modeling
The Events Log shows an error if no clickId value is present.

The Events Log shows an error if no clickId value is present.

How to fix this error:

  1. Verify your atclid capture code is working correctly
  2. Ensure the atclid is included in all conversion event data
  3. Test your WebHook integration to confirm the click ID is being transmitted
  4. Check that your automation platform (Zapier, Make, etc.) is properly forwarding the atclid

Frequently Asked Questions

FAQ was last reviewed on 2026-02-17

No, you must use the specific `atclid` value generated by the actual visitor on your website. Using a different or incorrect click ID will cause attribution errors or link the conversion to the wrong user. The `atclid` must match the visitor who generated the conversion event.
Learn more about [how AnyTrack click ID works](/docs/anytrack-click-id) and the technology behind conversion tracking and attribution modeling.
The `atclid` remains valid for the duration of your attribution window settings in AnyTrack. This ensures conversions can be properly attributed even if they occur days or weeks after the initial ad click.
Each unique visitor session generates its own `atclid`, so conversions are attributed to the correct ad interaction even on shared devices.