Tạo & Tối Ưu Link Tiếp Thị Liên Kết
Chuyển đổi link Shopee nhanh chóng với UTM Tracking chuẩn xác và mã hóa an toàn.
Công Cụ Chuyển Đổi Link Đơn
Gán Thẻ Theo Dõi Sub-ID (Tối đa 5 thẻ)
Giải thíchChuyển Đổi Link Shopee Hàng Loạt
Tự Động Tạo Content Bài Đăng Săn Mã / Đăng Bài
Lịch Sử Chuyển Đổi Link Gần ĐÂY
| Thời Gian | Link Shopee Gốc | Link Affiliate Rút Gọn | Sub ID | Hành Động |
|---|
Cấu Hình Chuẩn Hóa Mã Tracking Sub-ID
Hệ thống hỗ trợ 5 trường Sub-ID nối với nhau bằng dấu gạch ngang (`-`). Dưới đây là mẫu quy chuẩn tối ưu nhất để tracking doanh số Affiliate:
Sub 1
Channel / Nguồn Traffic
facebook: Bài viết Facebooktiktok: Link Bio TikTokzalo: Nhóm Zalo Săn Mãtelegram: Kênh Telegram
Sub 2
Định Dạng Nội Dung
post: Bài viết thông thườngreel: Video ngắn / Reelsstory: Tin / Story 24hbio: Trang tổng hợp link
Sub 3
Tên Chiến Dịch
sale99: Ngày đôi 9/9payday: Luơng về giữa/cuối thángsanma: Khung giờ săn mã 0H
Sub 4 & 5
Định Danh Tùy Biến
sp01: Mã ID sản phẩm cụ thểnhom1: Tên nhóm/fanpage đăngkols_a: Mã Publisher cộng tác
Tiện Ích Trình Duyệt Chrome Extension (1-Click)
Shopee Affiliate Quick Converter Extension
Tiện ích mở rộng giúp bạn tạo link rút gọn ngay khi đang xem sản phẩm Shopee trên máy tính.
Mã nguồn nằm trong thư mục:
chrome-extension/Hướng dẫn cài đặt Chrome Extension trong 3 bước:
- Mở trình duyệt Google Chrome và truy cập đường dẫn:
chrome://extensions/ - Bật chế độ **Developer mode (Chế độ dành cho nhà phát triển)** ở góc trên bên phải.
- Nhấn nút **Load unpacked (Tải tiện ích đã giải nén)** và chọn thư mục:
C:\Users\SAIGONCACANH\.gemini\antigravity\scratch\shopee-affiliate-suite\chrome-extension
Tự Động Hóa Trực Tiếp Trên Google Sheets
Dán đoạn mã **Google Apps Script** dưới đây vào Google Sheets của bạn để dùng hàm tự động `=SHOPEE_AFF(A2, "facebook", "post")`:
/**
* Hàm tự động tạo Link Affiliate Shopee chuẩn trong Google Sheets
* Cú pháp: =SHOPEE_AFF(shopeeUrl, sub1, sub2, sub3)
*/
function SHOPEE_AFF(shopeeUrl, sub1, sub2, sub3) {
var AFFILIATE_ID = "14354840000"; // Thay mã ID Affiliate của bạn ở đây
if (!shopeeUrl) return "";
var encodedUrl = encodeURIComponent(shopeeUrl);
var subIds = [];
if (sub1) subIds.push(sub1);
if (sub2) subIds.push(sub2);
if (sub3) subIds.push(sub3);
var subStr = subIds.join("-");
var result = "https://s.shopee.vn/an_redir?origin_link=" + encodedUrl + "&affiliate_id=" + AFFILIATE_ID;
if (subStr) {
result += "&sub_id=" + subStr;
}
return result;
}
Tự Động Hóa Với Telegram Bot
Bot Telegram giúp bạn gửi bất kỳ link Shopee nào vào khung chat, Bot sẽ tự động trả lại link Affiliate rút gọn trong 1 giây.
import urllib.parse
from telegram import Update
from telegram.ext import ApplicationBuilder, CommandHandler, MessageHandler, filters, ContextTypes
AFFILIATE_ID = "14354840000"
TELEGRAM_BOT_TOKEN = "YOUR_TELEGRAM_BOT_TOKEN_HERE"
async def convert_link(update: Update, context: ContextTypes.DEFAULT_TYPE):
text = update.message.text
if "shopee.vn" in text or "shope.ee" in text:
encoded_url = urllib.parse.quote(text.strip(), safe='')
aff_link = f"https://s.shopee.vn/an_redir?origin_link={encoded_url}&affiliate_id={AFFILIATE_ID}&sub_id=telegram-bot"
await update.message.reply_text(f"🚀 Link Affiliate Shopee của bạn:\n\n{aff_link}")
else:
await update.message.reply_text("Vui lòng gửi đúng đường dẫn Shopee hợp lệ.")
if __name__ == '__main__':
app = ApplicationBuilder().token(TELEGRAM_BOT_TOKEN).build()
app.add_handler(MessageHandler(filters.TEXT & (~filters.COMMAND), convert_link))
print("Bot đang hoạt động...")
app.run_polling()
Mã nguồn hoàn chỉnh kèm file cấu hình nằm tại thư mục: telegram-bot/bot.py