BouncerBouncer Docs
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

FieldDescription
Source PlatformWhere the ad runs (TikTok, Google, Twitter, LinkedIn, YouTube, or Custom)
Rule NameA descriptive name for this rule
Ad IDA unique identifier for tracking (lowercase, alphanumeric, underscores only)
PatternThe text to match in the pre-filled message

Pattern matching options

Choose how strictly the pattern should match:

Match TypeWhat it does
ContainsText includes the pattern anywhere (most flexible)
Exact MatchText must match the pattern exactly
Starts WithText must begin with the pattern
Ends WithText must end with the pattern
RegexUse 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:

  1. Enter a sample pre-filled message in the test field
  2. Click Test
  3. 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%20Promo

Create 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.