TG-Staff 团队 avatar TG-Staff 团队

The Complete Guide to Telegram Split Links: How Magic Links Enable Traffic Attribution and Customer Service Closure

Telegram split link SEO magic link

Telegram Diversion Link Complete Guide: How Magic Links Enable Attribution and Customer Service Closure

In B2B SaaS and cross-border businesses, Telegram Bot has become a core tool for customer service and community management. However, when potential users click on an ad or social media link to enter the Bot, operators often cannot track “which channel this user came from” or “what is the ad ROI.” Telegram diversion links (also known as magic links) are the key infrastructure to solve this pain point. This article will detail the working principle, redirection mechanism of diversion links, and how to use them to build a complete loop from ad traffic to customer service handover.

A Telegram diversion link is a specially processed short link (e.g., https://app.tg-staff.com/{code}). When clicked, it does not directly jump to the Telegram Bot but first passes through an intermediate page (or directly redirects), capturing the visitor’s IP, browser information, source URL, and other data during the redirection process, then guides the user to the specified Telegram Bot and triggers an automatic reply.

Unlike ordinary Bot links (e.g., t.me/YourBot or https://t.me/YourBot), diversion links have the following core capabilities:

  • Attribution tracking: Records which ad, social media, or email the visitor clicked from.
  • Data capture: Captures the visitor’s technical information (IP, User-Agent, geographic location) and custom parameters (UTM parameters).
  • Session association: Writes the captured data into the user profile, allowing agents to directly view the visitor’s source in subsequent conversations.

In B2B SaaS customer service scenarios, the value of diversion links is particularly prominent: they turn every ad click into a traceable, attributable, and convertible potential opportunity.

The workflow of a diversion link can be broken down into three key stages: link generation → information capture → session assignment.

Using TG-Staff as an example, the diversion link format is https://app.tg-staff.com/{code}, where {code} is a system-generated unique short code. Each short code is associated with the following:

  • Target project: Specifies which Telegram Bot project to redirect to.
  • Attribution rules: Whether to enable UTM parameter parsing, whether to record the source page.
  • Session distribution rules: Which distribution strategy to use after redirection (round-robin or online-first).

When generating a link, operators only need to select a project in the TG-Staff console, and the system automatically generates a short link. You can also append UTM parameters (e.g., ?utm_source=facebook&utm_campaign=summer_sale) to the link, and the system will capture these parameters as well.

Information Capture Before Redirection

After a user clicks the diversion link, the system completes the following operations on the server side (usually within 1 second):

  1. Parse request: Reads the IP address, User-Agent (browser type, operating system), and Referer (source page) from the HTTP request headers.
  2. Extract parameters: Parses query parameters in the URL (e.g., utm_source, utm_campaign, custom parameters).
  3. Write to user profile: Stores the above data in the visitor’s user profile, associating it with subsequent Telegram chat records.
  4. Redirect: Uses a 302 or 301 redirect to send the user to the target Telegram Bot link (e.g., https://t.me/YourBot?start=xxx).

Key Differences

Ordinary Bot links (such as t.me/YourBot) cannot capture visitor source information or achieve ad attribution. Split links can record the complete path from click to entering the Bot, serving as the infrastructure for evaluating ad ROI.

Session Assignment After Redirection

When a user enters the Telegram Bot, the Bot receives the /start command (usually with a parameter like start=xxx to identify the source). At this point, TG-Staff’s session distribution rules take effect:

  • Round-robin assignment: The system sequentially assigns sessions to authorized online agents in a preset order.
  • Online-first: Priority is given to currently online agents; if all agents are offline, it falls back to round-robin assignment.

In this way, the distribution link not only completes attribution but also directly promotes efficient “visitor → agent” handover.

The following table clearly shows the differences between the two in key dimensions:

DimensionRegular Bot LinkDistribution Link (Magic Link)
Attribution capabilityCannot track originSupports UTM parameters, source page, IP capture
Data captureOnly obtains Telegram user IDObtains IP, browser info, geolocation, custom parameters
Customer service handoverRelies on Bot auto-reply, no manual assignmentCan work with session distribution rules to automatically assign to agents
Ad suitabilityNot suitable for paid channel attributionDesigned for ad campaigns, supports ROI calculation
SecurityNo additional protectionSupports HTTPS, can be used with anti-fraud strategies
User profileNoneCaptured data written to user profile, agents can view directly

For operational attribution, a regular Bot link is almost a “black box” — you only know someone entered the Bot, but not who, where from, or why. Distribution links provide complete visibility.

Build a complete conversion chain: Ad/Social Media → Distribution Link → Bot Auto-reply → Human Agent Handover. Here are the specific steps.

Suppose you run a set of ads on Facebook, and the target users click to enter your Telegram customer service Bot. The operation flow is as follows:

  1. Generate a distribution link: Create a distribution link in the TG-Staff console and select the target project.
  2. Add UTM parameters: Append ?utm_source=facebook&utm_medium=paid_social&utm_campaign=product_launch to the link.
  3. Configure the ad: In Facebook Ads Manager, paste the distribution link into the “Website URL” field (note: Facebook may require using a tracking template; refer to official documentation for details).
  4. Set up Bot auto-reply: After users enter the Bot, TG-Staff’s visual command flow can configure a welcome message, recognize the start=xxx parameter, and reply with corresponding content (e.g., “Thanks for following! An agent will contact you shortly”).

Multi-Channel Attribution Data Analysis

Through the TG-Staff backend, you can view the following data:

  • Click count: Total number of clicks on the distribution link.
  • Redirection rate: Percentage of users who successfully entered the Telegram Bot after clicking (identifies users lost due to not having Telegram installed).
  • Session conversion rate: Percentage of users who initiated a session after entering the Bot and were eventually handled by a human agent.
  • Channel contribution: View the number of visitors and sessions grouped by utm_source for different channels.

This data can be directly used to evaluate the ROI of each ad channel and guide future budget allocation.

Practical Tips

During promotional campaigns, configure unique diversion links (with campaign parameters) for different ad groups, and use session diversion rules to assign visitors to dedicated agents, boosting conversion rates.

Combining diversion links with conversation routing rules can optimize customer service efficiency and enhance user experience. Here are several implementable scenarios:

Peak Hour Diversion Strategy

During Double 11 or new product launches, visitor traffic surges. You can:

  • Configure an independent diversion link for campaign ads and set an “Online First” routing rule to ensure all online agents prioritize handling campaign traffic.
  • If agents are insufficient, add a queue notification in the bot’s auto-reply (e.g., “Current inquiries are heavy; agents will respond in order”) to reduce user waiting anxiety.

Assigning VIP Users to Specific Agents

For high-value customers (e.g., enterprise procurement inquiries), you can:

  • Add the ?vip=true parameter to the diversion link.
  • In TG-Staff, set the project’s customer service scope to “Designated Agents” and assign conversations to experienced agents.
  • Agents can directly see the vip tag in the user profile, enabling differentiated service.

Differentiated Welcome Messages Based on Source Channels

Users from different channels may have different expectations. For example:

  • Users from Google Ads might be interested in product features → welcome message focuses on feature introduction.
  • Users from social media (e.g., Twitter) might care more about community events → welcome message guides them to join the community.

Using TG-Staff’s visual command flow, you can set branching logic based on the utm_source parameter to achieve precise responses.

When using diversion links to capture visitor data, note the following compliance and security issues:

  • Privacy Notice: If the target audience is in the EU (GDPR) or California (CCPA), it is recommended to inform users of the data collection scope in the bot’s welcome message and provide a link to the privacy policy.
  • Anti-Fraud Mechanism: Diversion links support HTTPS by default to prevent man-in-the-middle tampering. TG-Staff also provides basic anti-crawler and anti-fraud strategies (e.g., limiting repeated clicks from the same IP in a short period).
  • Data Storage: Captured IP and browser information are only used for attribution analysis and are not permanently stored. For specific retention periods, refer to TG-Staff’s privacy policy.

TG-Staff’s diversion link feature is available in the Standard plan and above. Here are the core features:

  • Creation and Management: In the console, select the “Diversion Links” module and click create to generate a short link. You can view click statistics, conversion rates, and source channels for all links.
  • Parameter Capture: Automatically parses standard UTM parameters such as utm_source, utm_medium, utm_campaign, utm_term, utm_content, and also supports custom parameters.
  • User Profile Integration: Captured data is directly written to the user profile. Agents can view fields such as “Source Channel,” “Source Page,” “IP Address,” and “Browser Information” in the conversation interface.
  • Conversation Routing Integration: After the diversion link redirects, it automatically triggers conversation routing rules without additional configuration.
  • Auto-Translation Support: If users come from non-Chinese regions, agents can enable the auto-translation feature to translate user messages and replies in real time.

To enable the diversion link feature, register for a trial and experience it in the console. For specific plan pricing, see the pricing page on the official website.

Frequently Asked Questions

Q: Can I customize the short link name for diversion links?

A: Currently, TG-Staff generates diversion links with system-assigned short codes and does not support customization. You can use URL parameters (e.g., ?utm_source=facebook) to differentiate channels and view data grouped by parameters in the backend.

Q: Will visitor information be lost after the diversion link redirects?

A: No. TG-Staff writes the IP, browser information, and URL parameters to the user profile before the redirect. Agents can view visitor source and technical information directly in the conversation interface. Even if a visitor closes their browser and replies via the bot later, the information is retained.

Q: Can diversion links and regular bot links be used together?

A: Yes. It is recommended to use diversion links for paid channels (ads, KOL promotions) and regular bot links for organic traffic (official website, community) to avoid attribution data confusion. For example, place t.me/YourBot at the bottom of the official website, while using diversion links with UTM parameters for Facebook ads.

Q: Does the free trial support diversion links?

A: The free trial includes all Standard plan features, including diversion links. After the trial ends, you need to upgrade to the Standard plan or above to continue using them. It is recommended to fully test attribution effects during the trial.

Q: Do diversion links support HTTPS?

A: Yes. TG-Staff diversion links use the HTTPS protocol by default, ensuring the security of visitor data during transmission and meeting search engines’ preference for HTTPS.


Experience the full capabilities of Telegram diversion links now: Register for a free trial of TG-Staff, check the official documentation for configuration details, or contact @tgstaff_robot for one-on-one customer support.