Track Telegram bot leads from ads: start label and postback
UTM tags die at t.me. How to carry a label and click ID into your bot, see each lead as a card, and let your tracker's postback mark the sale.
Your customers are already in your bot
Open the pipelineTL;DR. UTM tags and pixels stop at t.me: Telegram passes nothing to a bot except the start parameter. So put the source there —
t.me/<your bot>?start=<label>__<click ID>— and AdminHub keeps the label and click ID on the customer card. When the sale happens on a partner’s site, your ad tracker sends a postback with that click ID, and on Pro the card moves to Bought by itself. The Sources tab then shows leads and payouts per label.
Paid traffic into a Telegram bot has one blind spot: the moment the person taps Start, every web analytics tool loses them. The ad network knows about the click, the tracker knows about the click, the offer knows about the deposit — and the chat in between, where the selling actually happens, knows nothing. This guide closes that gap with two pieces Telegram already allows: a start parameter on the way in and a postback on the way out.
Why the usual tools stop at t.me
Telegram’s link reference documents its own parameters only — start for bots, startapp for Mini Apps — and passes no UTM values to a bot or a channel. A pixel cannot fire inside a chat either. So a lead from an ad arrives in your bot without a source, unless the source travels in the one place Telegram does carry: the start parameter. (If you also tag links to your website, our UTM builder does that part and warns when a link leads into Telegram.)
The link: a label and a click ID
The format is t.me/<your bot>?start=<label>__<click ID> — a label, two underscores, the click ID.
- The label names the source or campaign:
fb1,tt_promo,blogger_anna. It is what the Sources tab groups by. - The click ID is the macro your tracker substitutes for every click. In Keitaro that is
{subid}; in other trackers, the click ID macro of the campaign. - The start parameter allows Latin letters, digits, underscore and hyphen, 64 characters in total. A link with only a click ID (
?start={subid}) works too — the card then has no label.
When someone presses Start, your bot answers on your behalf — with the greeting from your support settings, or a neutral prompt to write their question — and a card appears in your customer pipeline with the label and click ID on it. On Pro with AI support on, the AI picks up their next message. First touch wins: if the same person later comes through another ad, the card keeps the first pair, so a second campaign cannot take credit for a lead the first one brought. A click ID already sitting on another card is not copied to a new one either — a postback has to find exactly one lead.
Step by step
- Open the tracker settings. In the Mini App: Money → Clients → Pipeline → Tracker. The ad link builder is there on every plan; the rest needs Pro.
- Build the ad link. Type a label, copy the link, and put it into your tracker campaign as the destination, with the click ID macro after the two underscores.
- Add your offers. Each offer is a link with
{click_id}where the partner network expects the click ID (https://…?sub1={click_id}). When a customer is ready, the AI agent sends the matching offer as a button and substitutes this lead’s click ID. A lead without one gets a reserved ID that still lets the postback find the card. - Paste the postback URL into your tracker. It is the S2S postback “to the traffic source”. In Keitaro the template looks like
…/postback/<secret>?subid={subid}&status={status}&revenue={revenue}¤cy=USD&tid={tid}— Keitaro’s own placeholders for the click, its status (lead, sale, rejected), the revenue and the transaction. - Map statuses to stages. By default sale, dep, deposit, ftd, purchase and approved move the card to Bought. Add your own rules — lead → Wants to buy, for instance.
- Send a test. Open a test card, copy its click ID, fire one postback from the tracker and watch the “Recent postbacks” list: it shows whether the lead was found and whether the card moved.
What you see afterwards
Each card carries its source line — label and click ID — the postbacks it received, and a history: came by an ad link, AI sent the offer, postback → Bought. The Sources tab adds it up for 7, 30 or 90 days: per label, how many leads arrived, how many reached Bought and what the postbacks paid, in each currency the tracker reported.
The honest limits
- The postback is the only window into the offer’s site. AdminHub does not see what happens there; it trusts the tracker’s status. That is the same contract every tracker has with its traffic sources.
- Payouts stay in the tracker’s currency. USD and EUR are listed side by side, never converted.
- Repeats need a transaction ID. A postback with a
tidalready received is ignored, so pass one if your tracker retries. - The secret is in the URL. Treat the postback address like a password; “Change secret” makes the old one stop working at once.
The pipeline itself — stages, the Bought rule, the AI that fills cards — is explained in Telegram CRM: a built-in pipeline vs a bolted-on CRM. Building the deep link by hand is covered by the Telegram link generator, and the agent that sends the offer is described on the AI support page.
What people usually ask
- Why can't I use UTM tags for ads that lead into a Telegram bot?
- Telegram documents no UTM parameters for its links and passes none to the bot. The only thing a bot link carries into the chat is the start parameter, so the label and the click ID have to travel there.
- What should the bot link look like?
- t.me/<your bot>?start=<label>__<click ID>. The label names the source or campaign, the click ID is the macro your tracker substitutes. Both use Latin letters, digits, underscore and hyphen, 64 characters in total. A link with only a click ID works too.
- What happens if the same person opens a different ad later?
- Nothing changes on the card. The first label and click ID stay — first touch wins — so a second ad cannot take credit for a lead the first one brought.
- Which statuses move the card to Bought?
- By default sale, dep, deposit, ftd, purchase and approved. You can map any status your tracker sends to any stage, for example lead to Wants to buy. A status with no rule is recorded on the card without moving it.
- Is this on the free plan?
- The label and click ID are stored on the customer card on every plan. The postback, offer links sent by the AI and the Sources tab need Pro.