tellmetric
Meta CAPI

Meta Conversions API for Telegram funnels

When a click results in a group member or a depositor, Tellmetric reports the conversion to Meta through the Conversions API. Your campaigns can then optimise for those outcomes rather than for clicks.

Start free Free plan, no card needed. See pricing

New to this? Start with the main guide: Telegram conversion tracking

Conversions Meta cannot observe

Meta's delivery system relies on feedback. It serves the ad, observes the result and adjusts delivery accordingly. In a Telegram funnel the result happens outside Meta's view: the person taps the ad, Telegram opens, and whatever happens next, a join, a conversation or a deposit, takes place in a native app where the Meta pixel cannot run. The feedback never arrives. A campaign without conversion data cannot improve its targeting, regardless of how long it runs, and it settles on the only signal it has: it treats the click as the conversion and optimises for people likely to click, who are rarely the people likely to deposit.

Pixel and Conversions API: how each works

The pixel is JavaScript that loads with a web page. It sets a first-party browser id (the _fbp cookie), stores the fbclid Meta appended to the ad URL as the _fbc cookie, and fires events such as PageView or Lead from the visitor's browser. Everything it knows comes from that browser session, and it can only fire while your page is open. It can report what happens on your landing page, including the tap on a Telegram button, and nothing after that.

The Conversions API (CAPI) is a server-to-server channel. Any system that knows a conversion happened can post it to your Meta dataset, including a Telegram bot that has just seen someone join. Each event names what happened, when, and the customer information Meta uses to match it to a person who saw the ad. Nothing runs in the visitor's browser, so the event can describe something that happened inside Telegram, and it is not affected by ad blockers, browser privacy features or cookie loss once the click has been recorded.

The API itself is only a delivery mechanism. What it does not solve on its own is identity: for an event to be useful it has to name a standard event Meta can optimise for, carry enough identifiers for Meta to connect it to a click on one of its ads, and arrive once rather than several times. Tellmetric handles each of these, as the sections below describe.

What each method can see in a Telegram funnel

The table follows one visitor from the ad to a deposit and shows which method can report each step, assuming Tellmetric is sending the server-side events.

StepMeta PixelConversions API via Tellmetric
Landing page viewYes, as PageViewThe visit is recorded when the page runs the tracker.js snippet
Tap on the Telegram buttonYes, if you add a custom eventRecorded as a click on the tracking link
Ad that opens Telegram with no landing pageNo, there is no page to loadRecorded as a click on the tracking link
Group or channel joinNoYes, as CompleteRegistration
Message to your botNoYes, as Contact
Telegram Stars paymentNoYes, as Purchase, converted to US dollars
Deposit on your platformOnly if the platform's own pages run your pixelYes, as Purchase with value and currency, via postback or the event API
Member leaves the groupNoRecorded for your reports, never sent as a conversion

The pixel stops at the moment Telegram opens, because the browser session that carried it ends there. Server-side delivery continues for as long as the click can be tied to the person, which is why the Conversions API is the only route for joins, conversations and payments.

Which events Meta receives

Custom event names can be measured in Events Manager, but campaigns optimise only on standard events. Tellmetric therefore maps its internal events to Meta standard events by default:

  • Group or channel join becomes CompleteRegistration
  • Message to your bot becomes Contact when it can be matched to a click; a message with no click behind it is kept in your reports but not sent, because Meta could not match it to anyone
  • Deposit and first deposit (FTD) become Purchase with value and currency
  • Telegram Stars payment becomes Purchase, with the Stars amount converted to US dollars, because Meta accepts only ISO currencies and XTR is not one
  • Postback statuses lead, contact and reg become Lead, Contact and CompleteRegistration

Clicks on tracking links can also be sent under their own custom names, such as JoinClick; Meta reports custom events but cannot optimise for them, which is appropriate for a click. Members who leave and refunds are not sent as conversions.

Under Integrations → Telegram, in Event names, you can override any mapping, one line per event, for example Joiner=Lead. When the name Meta receives differs from the internal one, the original is kept in custom_data as source_event, so you can still tell a deposit from a Stars payment inside Events Manager. Start with join and purchase, and add other events once both ends of the funnel are reporting correctly.

Anatomy of one event

Each event Tellmetric posts to /{pixel_id}/events on the Graph API carries these fields:

  • event_name: the standard name from the mapping above.
  • event_time: Unix time in seconds, in UTC, close to the time of the action. Meta rejects events older than seven days and events dated in the future.
  • event_id: a stable identifier for this conversion, reused on every retry so Meta can deduplicate.
  • action_source: website, since the event follows a click on a web ad link.
  • user_data: the click identifier, the click's IP address and user agent, and hashed identifiers, described in the next two sections.
  • custom_data.value and custom_data.currency on purchases, with an ISO 4217 currency code.

How fbc ties the event to the click

The fbc value is what links a server event to a specific ad click. Its format is fb.1.<timestamp>.<fbclid>, with the timestamp in milliseconds. Three details matter, and Tellmetric follows each:

  1. The timestamp is the time the fbclid was first observed, on the redirect or the landing page, not the time of the conversion.
  2. The fbclid keeps its case. It is case-sensitive, and a lowercased value no longer matches the click.
  3. If a browser already holds an _fbc cookie in this format, it is used as it is rather than rebuilt.

fbc is stored with the click as soon as it is known, and every later event from the same person copies it along with the click's IP address and user agent. Using your own server's IP address and user agent instead would make the event appear to come from a data centre. The visitor reaches Telegram through a link that carries a unique click id, a single-use invite or a bot deep link, and when the bot observes the join, message or payment it resolves that id back to the stored click.

Match quality: what each event carries

Meta can only credit a conversion to an ad if it can recognise the person, and the more reliable customer information parameters an event carries, the better it matches. A Telegram funnel offers fewer of these than a web checkout, so each one counts.

  • fbc, rebuilt from the fbclid at the moment of the click
  • fbp, the Meta browser id, when the visitor passed through a landing page running the tracker.js snippet
  • Client IP address and user agent from the click, inherited by every later event from the same person
  • Country, resolved from the click and sent hashed
  • external_id, a SHA-256 hash of the Telegram user id, so a join and a later deposit carry the same identity
  • First and last name from the Telegram profile when present, hashed
  • Email, phone, name, city, state, postal code, date of birth and gender, when your platform includes them in the postback or event API call; they are hashed before storage, and values you have already hashed pass through unchanged

The Telegram user id matters most for later events. A deposit reported days after the join carries the same external_id and inherits the original click's identifiers, so Meta sees one person moving through the funnel rather than unrelated events. For comparison, the pixel supplies _fbp, _fbc while the cookie survives, the browser's IP address and user agent, and form fields if you enable advanced matching on a page that collects them.

On Pro and Agency, the match quality panel on the dashboard shows the share of your events that carry each identifier, so you can see, for example, that deposits carry fbc but rarely an email address, and ask your platform to add it to the postback.

Browser match for direct links

An ad that opens Telegram directly never passes a page of yours, so no pixel runs and the fbp browser id is missing. With browser match switched on under Integrations → Meta, visitors from direct links see a half-second "Opening Telegram…" page that runs your own pixel, fires the click as the same event the Conversions API sends (so Meta counts it once), and passes the browser id to the click. Every later join and deposit then carries fbp as well as fbc. It is off by default. Your pixel runs in the visitor's browser on our domain, so mention it in your privacy notice if your market requires that.

Deduplication and repeat purchases

Meta treats two events with the same event name and event id in the same dataset as one. The id should therefore describe the conversion, not the request. Tellmetric derives its ids so that each real-world action is counted once:

  • A join uses the tracking link and the Telegram user, so the same person joining again through the same link is not counted twice.
  • A message is recorded at most once per person per day, however many messages they send.
  • A postback combines the status, the click id and the transaction id. A resent deposit is recognised as a duplicate; a second deposit with a new transaction id is a new purchase.
  • A Stars payment uses Telegram's own charge id.

For repeat deposits, the transaction id is also sent as order_id, the customer is marked as new or returning, and the first purchase is referenced through original_event_data.

Deduplication between the pixel and the server only matters when both report the same action. In a typical Telegram funnel they do not overlap: the pixel reports page events, and Tellmetric reports joins, messages and deposits. Overlap appears when you fire a conversion from the page and also report it from your server, for example a Lead on a form submission. Then pass the same id in both places: the event API accepts your own event_id, so a lead your backend reports through Tellmetric can carry the id your pixel already used. Without a shared id, Meta counts the action twice.

How delivery is handled

A delivery worker picks up new events every 30 seconds and sends them to your dataset in batches. Before sending, each event is checked against Meta's rules. Meta rejects an entire batch when a single event is invalid, so an event that is older than seven days, has an unsupported currency or carries a non-browser user agent is set aside on its own instead of blocking the rest. Temporary errors such as rate limits are retried with increasing intervals before an event is marked as failed. Traffic that looks automated, such as known crawler user agents or private IP addresses, is recorded but not sent, so Meta learns from people rather than bots.

If your workspace holds deposits for review, a deposit waits until a team member approves it and is only then delivered. Each event's delivery status and Meta's response are visible in the app.

Illustrative example: one visitor, two events

The sequence is illustrative. A visitor clicks a Reels ad at 14:02. The tracking link records the click and its fbclid and forwards the visitor to your bot with the click id in the start parameter. At 14:05 the visitor joins the group through the single-use invite the bot issued, and a CompleteRegistration event goes to Meta with the stored fbc, the hashed Telegram user id and the click's IP address and user agent. Three days later a postback reports a €120 deposit for the same click id, and a Purchase follows with value 120, currency EUR, the same identifiers, the broker's transaction id as order_id and a source_event field showing that it originated as a Deposit.

Which setup fits your funnel

  • Ad straight to Telegram, no website. Use the Conversions API only. There is no page for a pixel to run on, and the tracking link records the click before Telegram opens. Browser match can add fbp. Telegram conversion tracking covers this setup.
  • Landing page, then Telegram. Keep the pixel on the page for PageView and the browser id, add the tracker.js snippet so fbp and the campaign parameters travel with the click, and let the Conversions API report joins, messages and deposits.
  • Website checkout plus a Telegram community. Keep the pixel for purchases on your own pages and report Telegram outcomes server-side. Use different event names for the two, or a shared event id where they could describe the same action.

Connecting Meta, step by step

  1. In Meta Events Manager, select your dataset (pixel) and open Settings. Copy the dataset id.
  2. Under Conversions API, generate an access token and copy it.
  3. In Tellmetric, open Integrations → Meta and paste both. You can do this on the Free plan.
  4. Copy a test event code from the Test events tab in Events Manager and add it on the same page.
  5. Open one of your tracking links on your phone and join the group. Within about a minute the join appears in Test events as CompleteRegistration.
  6. Check that no action is reported by both the pixel and the server under the same event name without a shared event id.
  7. Remove the test code so that real events count towards your campaigns, then set the campaign's conversion event to the stage that best reflects revenue and still occurs often enough for Meta to learn from.

For the full campaign setup, URL parameters and reporting, see Meta ads Telegram tracking.

Common mistakes

  • Sending custom event names, which Meta measures but cannot use as an optimisation goal
  • Optimising on a pixel event such as a button tap, which rewards people who tap rather than people who join or pay
  • Sending deposits without value and currency, so Meta counts them but cannot weigh them
  • Collecting deposits in a weekly batch, when Meta accepts events only up to seven days old
  • Reusing one invite link for every campaign, which makes it impossible to assign a join to a specific click
  • Removing the pixel from a landing page after adding server-side events, which loses the browser id the page could have passed on
  • Firing the same Lead from the page and from the server with different ids, so every lead is counted twice
  • Omitting the email or phone your platform already holds, which leaves deposits matching on click data alone
  • Forgetting to remove the test event code after verification

Benefits for advertisers

  • Campaigns optimised for members and depositors instead of clicks
  • Lookalike audiences built from people who converted
  • Conversion columns in Ads Manager that reflect Telegram outcomes
  • Reporting that continues to work when browsers block third-party tracking

Frequently asked questions

Do I need a Meta Pixel?

You need a dataset, which Events Manager may still call a pixel, and a Conversions API access token, both free in Events Manager. You do not need pixel code on any page if your ads open Telegram directly.

Can I keep my website pixel?

Yes, and where a web page is part of the funnel you should. The pixel and the Conversions API report different steps, and Tellmetric's event ids let Meta deduplicate any event reported by both.

Will Meta optimise on server-side events?

Yes. Events sent with standard names such as CompleteRegistration, Contact and Purchase can be selected as conversion goals in the same way as pixel events.

Can I rename the events?

Yes. Each workspace can map internal events to any Meta standard event, for example Joiner to Lead instead of CompleteRegistration. The internal name is kept as source_event.

Can a deposit arrive weeks after the click?

Yes. The seven-day limit applies to the event time, which is when the deposit happened, not when the click happened. A deposit reported promptly can be sent however old the click is. Whether Meta credits it to the ad depends on your attribution setting.

Is the Conversions API included on the Free plan?

Yes. Meta reporting is part of every plan, including Free, which covers 1,000 tracked users a month. TikTok, Snapchat, Reddit, Spotify, X and Google Ads are added on Pro and Agency.

Can I send events from my own backend?

Yes. The event API accepts conversions with a Telegram user id or your own customer id, and the postback endpoint accepts the format affiliate trackers already use. Both are described on the developers page.

Related guides

Track Telegram and Discord conversions from your ads

The Free plan requires no card. Upgrade to Pro at any time.