Skip to Content
Track your Telegram conversions with Meta Ads - Get started in minutes!

TikTok Events API

This guide explains how to configure the Events API events AdTarget sends to TikTok when users join your Telegram channel.

When Are Events Sent?

AdTarget sends an event to TikTok only for attributed joins — meaning joins where AdTarget can match the Telegram join back to a specific ad click on your landing page. This requires the invite_link to be present in Telegram’s webhook.

Events are sent when a user clicks your tracked invite link and Telegram reports it in the webhook (reliable for private channels).

Events are NOT sent for organic joins — users who find your channel via search, direct links, or forwarded messages. These joins still appear in your AdTarget dashboard but are marked as “organic.”

Public channel limitation: Due to a Telegram API limitation, even users who click your tracked link may be treated as organic joins on public channels. Telegram’s app (especially Android) often converts invite-link joins into “direct joins” for public channels, stripping the attribution data. Learn more →

Available Event Types

AdTarget maps its event types to TikTok’s standard events:

AdTarget EventTikTok EventBest ForTikTok Optimization
LeadSubmitFormLead generation campaignsOptimizes for form submissions
PurchasePurchasePurchase-focused campaignsOptimizes for purchase actions
CompleteRegistrationCompleteRegistrationSignup-focused campaignsOptimizes for registration actions
SubscribeSubscribeSubscription campaignsOptimizes for subscription intent
CustomYour custom nameSpecialized trackingCustom optimization

Choosing the Right Event

Running lead gen ads? Use Lead (maps to TikTok’s SubmitForm) — This tells TikTok “this person submitted a form / became a lead.”

Selling a product or service? Use Purchase — Best when you want TikTok to optimize for buyers. Pair it with a value and currency in your channel’s conversion config for value-based optimization.

Running signup campaigns? Use CompleteRegistration — Signals a completed registration action.

Promoting a channel subscription? Use Subscribe — Matches the user action (joining = subscribing).

Need a non-standard event? Use Custom — Lets you define your own event name for specialized tracking scenarios.

Tip: Match your event type to your campaign objective in TikTok Ads Manager for best results.


Configuring Events

Event types are configured per channel. Each channel defaults to CompleteRegistration when first detected.

To change a channel’s event type:

  1. Go to your site’s SettingsChannels tab
  2. Click Setup (or Edit) on the channel row
  3. Select your event type in the dialog
  4. Click Save

Event Parameters

Each event AdTarget sends to TikTok includes these parameters:

Required Parameters

ParameterDescription
eventThe TikTok event name (SubmitForm, Purchase, etc.)
timestampISO 8601 timestamp of the join
event_idUnique deduplication ID

Attribution Parameters

ParameterDescription
context.ad.callbackThe ttclid from the ad click (TikTok Click ID)

User Data

ParameterSourceHashed?
context.user.external_idTelegram user IDYes (SHA-256)
context.ipIP from landing page visitNo (sent as-is)
context.user_agentBrowser from landing page visitNo (sent as-is)

The external_id (Telegram user ID) is SHA-256 hashed before sending, as required by TikTok. IP address and user agent are sent as-is per TikTok’s Events API specifications.

Event Properties

ParameterDescription
properties.valueEvent value (if configured per channel)
properties.currencyCurrency code (defaults to "USD")
properties.content_nameChannel title or custom name from channel config

Event Deduplication

AdTarget includes a unique event_id with each event to prevent duplicates:

event_id: "adtarget_{conversion_id}"

This ensures the same conversion isn’t counted twice, even if retried.


Testing Events

Test in Production

The most reliable way to test end-to-end:

  1. Click your own TikTok ad (or use a test ad)
  2. Visit your landing page
  3. Join your Telegram channel via the tracked invite link
  4. Check TikTok Events Manager within 5-10 minutes

Verify in TikTok Ads Manager

  1. Go to AssetsEventsWeb EventsManage
  2. Check the Events tab
  3. Look for your event type with recent timestamps
  4. Verify the event shows as “Received”

Event Matching

TikTok matches your events to users for attribution. Higher match quality means better optimization.

Match Quality Factors

FactorImpact
ttclid presentHigh - Direct click attribution
User agent + IPMedium - Probabilistic matching
External IDMedium - Cross-device matching

Improving Match Quality

  1. Capture ttclid: Ensure your landing page URL preserves the ttclid parameter
  2. Send events promptly: Shorter time between click and conversion improves matching
  3. Consistent user journey: Keep users on your domain before redirecting to Telegram

Common Event Configurations

Lead Generation

AdTarget Event: Lead → TikTok Event: SubmitForm When: User joins channel Use Case: "Get subscribers" campaigns

Purchase Tracking

AdTarget Event: Purchase → TikTok Event: Purchase When: User joins channel Use Case: "Buy now" campaigns with value-based optimization

Content Subscription

AdTarget Event: Subscribe → TikTok Event: Subscribe When: User joins channel Use Case: "Subscribe to channel" campaigns

Troubleshooting

Events not matching?

  • Check ttclid is in the landing page URL
  • Verify TikTok Pixel is also on the landing page
  • Ensure cookies aren’t blocked

Low event match rate?

  • Reduce time between click and conversion
  • Verify ttclid is being captured from the URL
  • Ensure IP and user agent are available

Duplicate events?

  • AdTarget handles deduplication automatically via event_id
  • If seeing duplicates, contact support

Best Practices

  1. Match event type to campaign objective for better optimization
  2. Use the same event type consistently within a campaign
  3. Monitor event delivery in TikTok Events Manager regularly
  4. Test before scaling ad spend

Next Steps

Your TikTok integration is complete! Start running ads and watch your conversions flow into TikTok.

Need help optimizing? Contact our support team.

Last updated on

TikTok Events API | AdTarget Docs