TG-Staff 团队 avatar TG-Staff 团队

How to Use Telegram Union Tracking Links for Affiliate Commission Attribution: A Complete Guide to Split Link Parameter Design

Telegram shunt link alliance attribution tracking

How to Implement Affiliate Commission Attribution with Telegram Alliance Tracking Links: A Complete Guide to Diversion Link Parameter Design

In cross-border customer service, Web3 projects, and overseas e-commerce Telegram community operations, affiliate marketing is a common customer acquisition method. However, many teams find that traditional affiliate links are difficult to accurately attribute in the Telegram environment—key information such as which channel the user came from, which affiliate referred them, and whether the transaction was completed is often lost.

This article will detail how to achieve a complete attribution loop from click to agent reception to commission settlement through the design of diversion link parameters in Telegram alliance tracking links. Whether you are an affiliate operations manager or a technical integration specialist, you will find configuration solutions that can be directly implemented.


Suppose you are a marketing lead for a Web3 project, placing affiliate links on Twitter and multiple Telegram communities. These links typically point directly to your Bot’s username (e.g., t.me/YourBot?start=ref123). However, the problems are:

  • Inability to capture environment information: The Telegram client blocks most referrer data, so you cannot know which community or tweet the user clicked from.
  • Parameter loss: After some third-party link redirects, start parameters may be truncated or obfuscated, causing the affiliate ID to fail to pass correctly.
  • No unified attribution backend: You need to manually cross-reference data across multiple platforms (Google Analytics, Telegram Bot logs, CRM), which is inefficient and error-prone.

TG-Staff’s Diversion Link provides a dedicated domain short link (e.g., https://app.tg-staff.com/{code}). When a user clicks this link, the system actively captures the following information before redirecting to the Telegram Bot:

  • Visitor IP address (for geographic attribution)
  • Browser and device information (User-Agent)
  • All parameters carried in the URL (including UTM and custom parameters)

This data is then automatically written into the user’s profile fields. In other words, before the user even enters the Bot, attribution data has already been recorded. This completely resolves the attribution blind spots of traditional links.

Applicable Scenarios

Split links are suitable for all scenarios that require quantifying ad performance or affiliate commissions, including but not limited to: Telegram community promotion, Twitter ads, email marketing, KOL promotion links, etc.


To make split links truly serve affiliate distribution, the key lies in parameter design. You need to clarify what information needs to be passed and how it connects with subsequent agent reception and settlement systems.

Standard UTM Parameter Configuration

UTM parameters are the unified tracking standard defined by Google Analytics. TG-Staff’s split links natively support all UTM parameters. The following fixed configuration is recommended:

ParameterExample ValueDescription
utm_sourcetwitter_kolSource platform, e.g., Twitter, Telegram group, email
utm_mediumaffiliate_linkMedium type, uniformly use affiliate_link to identify affiliate links
utm_campaignaffiliate_month_202501Campaign name, recommended to name in the format utm_content
ref_zhang_sanutm_source: twitter_kolSpecific content identifier, can be used to distinguish different affiliates

Configuration Example:

https://app.tg-staff.com/abc123?utm_source=twitter_kol&utm_medium=affiliate_link&utm_campaign=affiliate_month_202501&utm_content=ref_zhang_san

Users who click this link will automatically have fields like utm_source: twitter_kol and utm_campaign: affiliate_month_202501 generated in their profile. Later, in batch messaging or report statistics, you can filter users based on these fields.

Custom Parameters: Passing Affiliate ID, Channel Code, Commission Rate

In addition to UTM parameters, you can append any custom parameters. These parameters will also be captured by TG-Staff and stored in the user profile. For affiliate distribution scenarios, it is recommended to include the following three types of parameters:

  • Affiliate ID: affiliate_id=zhang_san_001, used to uniquely identify the referrer
  • Channel Code: channel_code=twitter_kol_01, used to distinguish different distribution channels under the same platform
  • Commission Rate: commission=10, used to mark the commission rate for this user (unit: percentage)

Complete Example:

https://app.tg-staff.com/abc123?utm_source=twitter&utm_medium=affiliate_link&utm_campaign=affiliate_month_202501&affiliate_id=zhang_san_001&channel_code=twitter_kol_01&commission=10

Important Note: It is recommended to use all lowercase letters and underscores for custom parameter names (e.g., affiliate_id), and avoid special characters (such as %, &) that may cause URL parsing errors. If parameter values contain spaces or Chinese characters, please URL-encode them first (e.g., 张三%E5%BC%A0%E4%B8%89).


After completing the parameter design, you need to understand how the entire chain connects:

  1. User clicks split link → System captures IP, browser, URL parameters
  2. Auto-redirect to Telegram Bot → User triggers Bot’s /start command
  3. Bot auto-reply (welcome message, menu, etc.) → User chooses to consult or purchase
  4. Session routed to agent → Assigned to online agent based on routing rules
  5. Agent handles and completes deal → Attribution data synced to user profile

Routing Rule Selection: Round Robin vs. Online Priority and Their Impact on Affiliate Conversion Rates

In TG-Staff’s project settings, you can configure two routing rules:

  • Round Robin (default): Polls agents with permissions sequentially, regardless of whether they are online. Suitable for teams with fixed agent numbers and consistent working hours.
  • Online Priority: Preferentially assigns to currently online agents; if all agents are offline, falls back to round robin. Suitable for shift-based or cross-timezone operations.

Impact on Affiliate Conversion Rates: If traffic from a certain affiliate channel is concentrated in specific time periods (e.g., 8–10 PM), it is recommended to use the Online Priority rule to ensure agents respond promptly, preventing user churn due to waiting. If your affiliates promote high-ticket products (e.g., SaaS subscriptions, NFT auctions), users may need in-depth consultation. In this case, Round Robin ensures even distribution across agents, preventing overload on individual agents.

How User Profiles Record Affiliate Source and Subsequent Behavior

After a user clicks a split link, all parameters (UTM + custom) are automatically written to the user’s profile fields. Taking TG-Staff Professional Edition as an example, you can see in the user profile:

  • Source Information: utm_source, utm_medium, utm_campaign
  • Affiliation: affiliate_id, channel_code
  • Commission Parameters: commission
  • Behavior Trajectory: Click time, Bot entry time, first agent reception time, session duration, whether a deal was made

This data can be exported via TG-Staff’s API or CSV export function to sync with your CRM or settlement system. For example, at the end of the month, you can export all users where affiliate_id is not empty and calculate commissions payable based on the commission field.

Attribution Tracking Best Practices

It is recommended to consistently use the utm_campaign=affiliate_month_yyyymm format in referral links for easier time-based commission tracking across channels. Additionally, use placeholders (e.g., {affiliate_id}) in the bot welcome message to dynamically display referrer information, enhancing affiliate engagement.


Agent Permissions and Content Risk Control Configuration in Alliance Distribution Scenarios

When multiple alliance channels run simultaneously, proper permission management becomes critical. You need to ensure:

  • Agents can only see conversations from their assigned channel
  • Agents cannot view commission details or user profiles from other channels
  • Agents do not accidentally send sensitive information during conversations (e.g., incorrect commission rates, internal wallet addresses)

Agent Permission Configuration Steps

  1. In the TG-Staff console, go to “Project Settings” → “Customer Service Scope”
  2. Select “Specified Agents” instead of “All Agents”
  3. Create independent agent groups for each alliance channel and assign dedicated agents
  4. When generating routing links, use the parameter staff_group=channel_a to route users to the specified agent group

This way, agents from Channel A can only see conversations from Channel A, and agents from Channel B cannot access Channel A’s data, effectively preventing commission information leaks.

Content Risk Control Configuration (Pro Version)

Pro version users can create risk phrases in the “Content Risk Control” module. For alliance distribution scenarios, it is recommended to add the following keywords to risk phrases:

  • Commission-related: 佣金比例, 返点, 回扣, commission
  • Contact information: 微信, QQ, 线下转账, 私聊
  • Sensitive assets: TRC20, ERC20, BTC 地址 (to prevent agents from accidentally sending personal payment addresses)

After configuration, when agents send messages containing these words, a pop-up for double confirmation (or direct blocking) will be triggered, and all triggering records can be audited.

Permission Management Precautions

If assigning independent agents to different affiliate channels, be sure to select “Assigned Agents” instead of “All Agents” in project settings to prevent agents from seeing commission details of other channels. Pro users can combine content moderation keywords to set terms like “commission rate” and “rebate” as risk words to prevent agents from inadvertently disclosing bottom prices in conversations.


Batch Messaging & Affiliate Operations: How to Improve Commission Efficiency with Segmented Outreach

Affiliate distribution operations go beyond attribution; they require ongoing user activation. TG-Staff’s batch messaging feature allows targeted outreach based on user segments.

Segmentation Strategy Example

Suppose you have Affiliate Channel A (from Twitter KOL promotion) and Channel B (from Telegram community promotion). You can:

  1. Filter users with utm_source = twitter_kol under user profiles
  2. Create a segment named “Channel A - Potential Customers”
  3. Send personalized messages to this segment, such as: “Thank you for visiting us via [KOL Name]‘s referral link! Place an order this week to enjoy an extra 5% discount.”
  4. For Channel B users, send different copy highlighting community-exclusive benefits

Commission Reminder Scenario

You can also use the segmentation feature to send commission settlement reminders to affiliate members (not end customers). For example:

  • Filter users where affiliate_id is not empty and commission is greater than 0
  • Send a message: “Your affiliate commission for this month has been settled. Please log in to the backend to view details.”

This approach significantly boosts affiliate member activity and promotion motivation.


Frequently Asked Questions

Q: Can the tracking link count clicks?

A: Yes. TG-Staff’s tracking links record each visitor’s IP, browser info, and URL parameters. You can view click source distribution in the console’s user profile and statistics module. Standard and above plans support exporting attribution data for commission settlement.

Q: How to prevent agents from privately contacting customers to bypass commissions?

A: We recommend enabling the Professional plan’s content moderation feature, adding keywords like “WeChat”, “QQ”, “offline transfer” to risk phrases. Messages containing these words will trigger secondary confirmation or be blocked. All session records are auditable.

Q: Can commission ratio parameters be passed directly in the tracking link?

A: Yes. You can append custom parameters (e.g., ?commission=10) after the tracking link. These parameters are captured by TG-Staff and written into the user’s profile fields. They can then be used for filtering in batch messaging or reports.

Q: Can I test the complete affiliate tracking chain during the free trial?

A: Yes. Registration gives you a 3-day free trial, including tracking links, session routing, and all Standard plan features. We recommend creating 1–2 test tracking links during the trial to simulate the full flow: user click → Bot reply → agent reception, and verify attribution data accuracy.

Q: Does the tracking link support custom domains?

A: Currently, TG-Staff provides official domain short links (https://app.tg-staff.com/{code}) and does not support custom domain binding. However, you can use URL redirect services to point your own domain to the tracking link, and parameters will still pass correctly.


Summary & Next Steps

Building a complete Telegram affiliate tracking system is not complicated. The core steps can be summarized in this checklist:

  • Create a TG-Staff project and generate a tracking link template
  • Embed UTM parameters in the tracking link (utm_source, utm_medium, utm_campaign)
  • Append custom parameters (affiliate_id, channel_code, commission)
  • Configure routing rules (recommend online priority for high-traffic periods)
  • Set agent permissions (use “Designated Agent” to isolate data from different channels)
  • Enable content moderation (Professional plan) to prevent sensitive information leaks
  • Test the full chain: click tracking link → Bot reply → agent reception → verify attribution data

If you’re struggling with Telegram distribution attribution, start today. Visit app.tg-staff.com to register for a free trial, and you can run a complete affiliate tracking chain within 3 days. For deep insights into tracking link parameter design, refer to the official documentation. For any questions, contact @tgstaff_robot for help.