Click ID Usage
Learn how to retrieve, collect, and use the AnyTrack Click ID (atclid) for conversion tracking and attribution modeling with custom integrations and webhooks.
Overview
Section titled “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 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.
What is the AnyTrack Click ID (atclid)?
Section titled “What is the AnyTrack Click ID (atclid)?”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
How to Retrieve, Collect, and Use atclid
Section titled “How to Retrieve, Collect, and Use atclid”Step 1: Retrieve the atclid
Section titled “Step 1: Retrieve the atclid”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);
Step 2: Collect the atclid
Section titled “Step 2: Collect the atclid”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.
Step 3: Send conversion events with atclid
Section titled “Step 3: Send conversion events with atclid”- Create a Custom Integration endpoint in your AnyTrack account
- Send each conversion event to the endpoint. Put the stored Click ID in the
click_idparameter - 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¤cy=USD&transaction_id=24356562534585JSON 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.
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.
Why this error occurs:
Section titled “Why this error occurs:”- The conversion data sent to AnyTrack has no
click_idparameter - The conversion data holds the Click ID under the wrong key, for example
atclidor_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
How to fix this error:
Section titled “How to fix this error:”- Verify that your collection code stores the value of
AnyTrack('atclid') - Rename the key to
click_idin every Postback URL and webhook body that holds the Click ID underatclidor_atid - Test your WebHook integration to confirm that the Click ID arrives in
click_id - Check that your automation platform (Zapier, Make, etc.) maps the stored Click ID to the
click_idparameter
Related Resources
Section titled “Related Resources”Frequently Asked Questions
FAQ was last reviewed on 2026-11-30