Skip to content

Learn how to retrieve, collect, and use the AnyTrack Click ID (atclid) for conversion tracking and attribution modeling with custom integrations and webhooks.

Custom platforms don’t automatically send attribution data. When conversions happen in your proprietary CRM, custom checkout system, or any platform outside AnyTrack’s native 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. Collect it when visitors land on your site, attach it to customer records in your system, then send it back to AnyTrack in the click_id parameter of your conversion Postback URL or webhook. That identifier connects the CRM sale back to the Facebook ad that started the journey, restoring attribution and feeding ad platforms the conversion signals they need.

The command AnyTrack('atclid') returns the Page Click ID: a 30-character ID that the Tracking Tag builds from the Property ID, the Client ID, and the current minute. It stays the same for the whole minute, so it matches the latest event of the visitor, not one exact event. Use it 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

The Tracking Tag installed on your website builds the Page Click ID each time you run AnyTrack('atclid'). 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

You need to collect 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 store 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 store 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

Section titled “Step 3: Send conversion events with atclid”
  1. Create a Custom Integration endpoint in your AnyTrack account
  2. Send each conversion event to the endpoint. Put the stored Click ID in the click_id parameter
  3. Include additional event attributes to improve attribution modeling and ad optimization

The 30-character value that AnyTrack('atclid') returns is valid in click_id. AnyTrack accepts the 34-, 30- and 26-character forms of the Click ID. See AnyTrack Identifiers.

The key is the same in a Postback URL and in a JSON body.

Postback URL:

https://t1.anytrack.io/<account-id>/collect/<integration-slug>?click_id=<stored Click ID>&conversion_type=purchase&value=120&currency=USD&transaction_id=24356562534585

JSON body:

{
"click_id": "<stored Click ID>",
"conversion_type": "purchase",
"value": 120.00,
"currency": "USD",
"transaction_id": "24356562534585"
}

For all parameters, see Custom Integration Parameters.

For better conversion tracking results, include as many relevant event attributes as possible. This helps train ad platform 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

Section titled “Troubleshooting: “No Matches Found” Error”

If you see “No matches found” or “Missing click_id” errors in your Events Log, AnyTrack did not receive a Click ID in the click_id parameter of your conversion data.

  • The conversion data sent to AnyTrack has no click_id parameter
  • The conversion data holds the Click ID under the wrong key, for example atclid or _atid. A Custom Integration does not read these keys
  • 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.
  1. Verify that your collection code stores the value of AnyTrack('atclid')
  2. Rename the key to click_id in every Postback URL and webhook body that holds the Click ID under atclid or _atid
  3. Test your WebHook integration to confirm that the Click ID arrives in click_id
  4. Check that your automation platform (Zapier, Make, etc.) maps the stored Click ID to the click_id parameter

Frequently Asked Questions

FAQ was last reviewed on 2026-11-30

Can I use any Click ID in the conversion data I send to AnyTrack?
No. Use the specific atclid value generated by the actual visitor on your website. Using a different or incorrect Click ID causes attribution errors or links the conversion to the wrong user. The atclid must match the visitor who generated the conversion event.
What technology powers the AnyTrack Click ID system?
The AnyTrack Click ID article explains how the atclid is generated, how it stitches client-side and server-side events, and how it powers conversion tracking and attribution modeling.
How long is the atclid valid for conversion tracking?
The Attribution window in your Property Settings changes only the attribution in AnyTrack reports. Each ad platform applies its own attribution window to the conversions that it receives.
What happens if multiple people use the same device?
Each unique visitor session generates its own atclid, so conversions are attributed to the correct ad interaction even on shared devices.
Why is my hidden form field still showing --CLICK-ID-- instead of the actual Click ID?
The Tracking Tag fills the placeholder only in fields inside a form element that it can modify. If your custom form renders after the page loads, no extra step is necessary. The Tracking Tag scans the page again when the page content changes, finds the form, and fills the hidden field. If the form is inside a widget or an iframe that the Tracking Tag cannot modify, use the Append Click ID to URL method (the atclidToUrl command): AnyTrack puts the Click ID on the page URL and the form builder collects it from the URL parameter. Use the AnyTrack callback pattern only when you need to set the field value with custom code.