Home / Blog / Telegram Pixel Tag — Installation and Integration Guide for Conversion Tracking in Telegram Ads

Telegram Pixel Tag — Installation and Integration Guide for Conversion Tracking in Telegram Ads

Author: Victor Tuneev· 8 min read· June 9, 2026

Telegram Pixel Tag — Installation and Integration Guide for Conversion Tracking in Telegram Ads

Learn how to set up the Telegram Pixel Tag on your website for accurate conversion tracking from Telegram ads. Step-by-step instructions for Tilda, GetCourse, WordPress, and other platforms.

The Telegram Pixel Tag is a fundamental tool for measuring the effectiveness of Telegram ad campaigns. Without systematic conversion tracking (sales, registrations), accurate ROI calculation and data-driven ad optimization in Telegram are impossible.

This guide covers all stages: from basic setup to in-depth instructions for specific platforms and troubleshooting. It is suitable for both beginners and experienced professionals.

Basics of Working with Telegram Pixel Tag

  • Step-by-step setup and verification
  • Platform-specific instructions (WordPress, Tilda, GetCourse)
  • Diagnostics and troubleshooting common errors

What is the Telegram Pixel Tag and How Does it Work?

The Telegram Pixel Tag is a JavaScript tracking code. Its function is similar to that of a postman: it records every event on your website (page view, click, purchase) and sends an encrypted notification to your Telegram Ads advertiser account.

This data flow — user → action on the site → pixel triggering → metrics transmission — works just like the Facebook Pixel or Yandex.Metrica. All collected data is automatically aggregated in the "Statistics" and "Events" sections of your dashboard, forming the foundation for analyzing campaign performance and building retargeting audiences.

What Events Can Be Tracked with the Pixel?

The Telegram Pixel Tag supports event tracking — key user actions on your website. At the time of writing, 19 types of events are available, divided into two categories:

  • Standard (pre-defined): Ready-made events for basic scenarios (view, purchase, registration).
  • Custom: Any unique actions that you define yourself for specific business tasks.

The correct choice of events directly impacts the accuracy of conversion measurement, the quality of retargeting audiences, and the effectiveness of ad campaign optimization.

Events supported by Telegram Pixel Tag:

  • page_view: Loading any page on the website. Scenario: Basic traffic and engagement tracking.
  • lead: Form submission (e.g., "Submit a request"). Scenario: Evaluating lead form effectiveness.
  • registration: Successful account registration. Scenario: Measuring the influx of new users.
  • add_to_cart: Adding an item to the shopping cart. Scenario: Analyzing pre-purchase behavior in e-commerce.
  • purchase: Completed payment. Scenario: Core metric for ROI and ad revenue.

For specific tasks (e.g., "play video" or "open support chat"), set up custom events. The main rule is to track only those actions that correlate with your business goals. The more relevant your event set, the higher the quality of data for tracking and optimization decisions.

Key Advantages and Engineering Trade-offs

The Telegram Pixel Tag provides key advantages for conversion tracking in Telegram, but each comes with an engineering trade-off.

  • Accurate conversion data: purchase and lead events are recorded directly, increasing ROI visibility. However, you risk getting incomplete data if you forget to configure the necessary events.
  • Automated reporting: Statistics and events are updated in the Telegram Ads dashboard without manual intervention. The main trade-off is limited flexibility in creating custom reports compared to tools like Google Analytics or Yandex.Metrica.
  • Deep integration: Direct connection with Telegram Ads allows you to optimize campaigns for goals and create Lookalike audiences. This creates vendor lock-in — platform changes can break your tracking.
  • Fast installation: Simply adding a JS code is enough. But simplicity means fewer options for complex attribution, such as multi-touch.

For advertisers working exclusively in Telegram, these trade-offs are justified. The Telegram Pixel Tag is a must-have tool, although multi-channel strategies will require additional solutions.

Step-by-Step Setup and Verification

The process of installing the Telegram Pixel Tag consists of four mandatory steps:

  1. Creating the pixel in the Telegram Ads dashboard.
  2. Adding the base code to all website pages.
  3. Configuring events for key actions.
  4. Verifying correct operation.

Step 1: Creating the Pixel in the Telegram Ads Dashboard

Log into your Telegram advertiser account, go to the "Manager Events" section, and click "Create Pixel". Set a name and copy the provided code. Important: The base code (library initialization) and the event code (sending a specific action) are different snippets. The pixel is tied to the entire account, not to a single campaign.

Step 2: Installing the Base Code on All Website Pages

The base code (JavaScript) must be added to the <head> section of every HTML document. It should load on all pages where tracking is required. Instructions for popular platforms:

  • WordPress: Install the "Insert Headers and Footers" plugin (or WPCode) and paste the code into the "Scripts in Header" field, or edit your theme's header.php file.
  • Tilda: Site Settings → SEO → "Code in HEAD" field.
  • GetCourse: Site Settings → Additional → "Code in HEAD".
  • Custom Website: Manual insertion into the <head> of your template.

Step 3: Configuring Events for Key Actions

The base code only initializes the pixel. To track conversions (e.g., "Buy"), configure events. In Manager Events, create the desired event (e.g., purchase) and get its unique code. Insert this code into the action handler on your website: in the onclick attribute of a button or in the form submission script.

Example for a purchase event passing value: For custom events (e.g., video_play), assign an arbitrary name. Pass additional parameters (value, currency) for more accurate analysis.

Step 4: Verifying Correct Pixel Operation

Verification is mandatory. Check:

  • The pixel status in Manager Events is "Active".
  • Requests are being sent in DevTools (Network tab, filter by "telegram.org").
  • The test event appears in the "Events" section of your dashboard.

Common Errors and Solutions:

  • Incorrect Code: Compare it with the original from the dashboard. A frequent mistake is using the event code without the base code.
  • Duplication: Check if the pixel is added twice (e.g., via a plugin and manually).
  • Browser Blocking: Privacy mode or "Enhanced Tracking Protection" settings can block tracking. Test in a normal browsing window.
  • Incorrect Event Name: The name in the code must exactly match the one created in Manager Events (case-sensitive).
  • Caching: After making changes, clear your site and CDN cache.

Detailed instructions for Tilda, GetCourse, and WordPress.

Installation on Tilda

In the Tilda editor: Site Settings → SEO → "Code in HEAD" field → paste the Telegram Pixel Tag base code. For events: in a "Button" or "Form" block, open "More" (Дополнительно) → "Event Code" → paste the code (e.g., for purchase).

Installation on GetCourse

In the GetCourse admin panel: Settings → Site → Additional → "Code in HEAD" → paste the base code. For events: in the page builder, select a button or form → "Advanced settings" → "Event Code".

Installation on WordPress

Install the "Insert Headers and Footers" plugin (or WPCode). In its settings → "Scripts in Header", paste the base code. For events, use the "Code Snippets" plugin or edit your theme files (e.g., functions.php). Example for WooCommerce — tracking "add to cart" via the woocommerce_after_add_to_cart_button filter.

Ready-made PHP snippet to add to functions.php: Test all changes in a staging environment. After inserting the code, publish/save your changes.

Limitations and Common Errors

Telegram Pixel Tag Limitations:

  • Only tracks referrals from Telegram; does not capture in-app actions.
  • Collects anonymous data, without tying it to a user ID.
  • No built-in automated campaign optimization (unlike Facebook CAPI).

Common Errors and Solutions:

  • Error: Code is not in <head> or not on all pages.
    • Cause: Incorrect installation.
    • Solution: Verify the insertion via "View Page Source" or browser DevTools.
  • Error: Event duplication.
    • Cause: The pixel is loaded twice (plugin + manual insertion).
    • Solution: Remove duplicates, keep one instance.
  • Error: Events are not arriving.
    • Cause: Browser blocking (privacy mode, AdBlock).
    • Solution: Test in a normal window; warn users about potential blocking.
  • Error: Incorrect event name.
    • Cause: Typo or mismatch with the name in Manager Events.
    • Solution: Copy the event name directly from the dashboard.
  • Error: Code is not updating.
    • Cause: CDN or plugin caching.
    • Solution: Clear your site and CDN cache after making changes.