Attribution Engine
Creating Attribution Rules
Define patterns to track non-Meta ad sources
Go to Attribution, select your WhatsApp instance from the dropdown, then click Add Rule.
Rules are configured per instance. If you have multiple WhatsApp numbers, each one has its own set of attribution rules.
Required fields
| Field | Description |
|---|---|
| Source Platform | Where the ad runs (TikTok, Google, Twitter, LinkedIn, YouTube, or Custom) |
| Rule Name | A descriptive name for this rule |
| Ad ID | A unique identifier for tracking (lowercase, alphanumeric, underscores only) |
| Pattern | The text to match in the pre-filled message |
Pattern matching options
Choose how strictly the pattern should match:
| Match Type | What it does |
|---|---|
| Contains | Text includes the pattern anywhere (most flexible) |
| Exact Match | Text must match the pattern exactly |
| Starts With | Text must begin with the pattern |
| Ends With | Text must end with the pattern |
| Regex | Use regular expressions for complex matching |
Additional options
- Case Sensitive - Toggle this on if capitalization matters
- Priority - Higher numbers are checked first. Use this when multiple rules might match
- Ad Name - Optional friendly name for reports
- Ad URL - Optional link to the ad for reference
Testing your pattern
Before saving, test your pattern against sample text:
- Enter a sample pre-filled message in the test field
- Click Test
- Green checkmark means it matches; red X means it doesn't
This prevents creating rules that don't work as expected.
Example rule
For a TikTok campaign with a wa.me link like:
https://wa.me/60123456789?text=Hi%20from%20TikTok%20Jan%20PromoCreate a rule with:
- Source Platform: TikTok
- Rule Name: January TikTok Campaign
- Ad ID:
tiktok_jan_2025 - Pattern:
TikTok Jan Promo - Match Type: Contains
When a contact sends "Hi from TikTok Jan Promo", they'll be attributed to this campaign.