Attribution Engine
Setting Up Your Ads
Configure ad platforms for WhatsApp attribution tracking
To use attribution effectively, configure each ad platform with a unique pre-filled message in your wa.me links.
TikTok
When creating your TikTok ad, use a Click-to-WhatsApp CTA with a wa.me link:
https://wa.me/60123456789?text=Hi%20from%20TikTok%20Jan%20PromoThen create a rule:
- Pattern:
TikTok Jan Promo - Match Type: Contains
- Ad ID:
tiktok_jan_2025
Google Ads
For Google Ads, include the campaign identifier in the pre-filled text:
https://wa.me/60123456789?text=Google%20Search%20-%20Product%20XRule:
- Pattern:
Google Search - Product X - Match Type: Starts With
- Ad ID:
google_product_x
Twitter / X
https://wa.me/60123456789?text=From%20Twitter%20Summer%20SaleRule:
- Pattern:
Twitter Summer Sale - Match Type: Contains
- Ad ID:
twitter_summer_2025
https://wa.me/60123456789?text=LinkedIn%20B2B%20CampaignRule:
- Pattern:
LinkedIn B2B - Match Type: Contains
- Ad ID:
linkedin_b2b
YouTube
https://wa.me/60123456789?text=Saw%20your%20YouTube%20videoRule:
- Pattern:
YouTube video - Match Type: Contains
- Ad ID:
youtube_video_campaign
URL encoding
Spaces in the pre-filled text must be URL-encoded as %20. Use an online URL encoder or replace spaces manually.
| Text | Encoded |
|---|---|
Hi from TikTok | Hi%20from%20TikTok |
Google Search - Product | Google%20Search%20-%20Product |
Best practices
- Use distinct text for each ad variant - Don't reuse the same pre-filled message across campaigns
- Keep patterns simple - "Contains" matching works for most cases
- Test patterns before launching - Use the test feature in the rule editor
- Use consistent Ad ID naming - Follow a pattern like
platform_campaign_date(e.g.,tiktok_jan_2025) - Include campaign identifiers - Add something unique so you can tell ads apart
Tracking multiple ad variants
If you're A/B testing ad creatives, use different pre-filled text for each:
Variant A:
https://wa.me/60123456789?text=TikTok%20Sale%20Version%20AVariant B:
https://wa.me/60123456789?text=TikTok%20Sale%20Version%20BCreate separate rules for each variant to track their individual performance.