📱 Messaging App Tracking Setup Guide
⚠️ Important: Some of these methods require API access and may have limitations based on platform policies.
🔵 Telegram Bot Setup
Step 1: Create a Telegram Bot
- Message @BotFather on Telegram
- Send
/newbot
- Follow instructions to create your bot
- Save the bot token
Step 2: Set Up Webhook
$bot = new TelegramBot('YOUR_BOT_TOKEN', 'https://campaigns.christiesrealestatedubai.com');
$bot->setWebhook();
Step 3: Update Contact Links
Replace your Telegram links with:
https://t.me/YOUR_BOT_USERNAME?start=fairmont_8466
🟢 WhatsApp Business API Setup
Option 1: WhatsApp Business API (Requires Approval)
- Apply for WhatsApp Business API access
- Set up webhook endpoints
- Configure message templates
Option 2: Click Tracking (Immediate)
Track when users click WhatsApp buttons (already implemented):
- ✅ Tracks button clicks
- ✅ Captures campaign data
- ✅ Sends notifications
- ✅ Works immediately
📊 What Gets Tracked
Button Clicks (Available Now)
- When someone clicks Telegram/WhatsApp buttons
- Campaign source (Yandex, Meta, etc.)
- Page URL and timestamp
- User's IP address
Actual Conversations (Requires Setup)
- When someone starts messaging
- Message content (if contains keywords)
- User information
- Automatic responses
🚀 Quick Start (No API Required)
The click tracking is already working! You'll receive notifications when someone:
- Clicks the Telegram button
- Clicks the WhatsApp button
- Submits the contact form
This gives you immediate lead tracking without needing API approvals.
📈 Advanced Tracking Options
1. UTM Parameter Tracking
Add UTM parameters to your messaging links:
https://wa.me/971553173210?text=I%20want%20to%20know%20more%20about%20fairmont%20residence%20Al%20Marjan%20Island%20-%20Property%20Ref%20No%208466%20-%20Source%3A%20Yandex
2. QR Code Tracking
Create unique QR codes for different campaigns that link to your messaging apps.
3. Short Link Tracking
Use services like Bitly or create custom short links to track clicks before redirecting to messaging apps.