Can I track if a contact came from a Meta (Facebook/Instagram) ad campaign?
When a user clicks on a Click-to-WhatsApp ad in Facebook or Instagram and sends you a message, our API delivers a webhook containing all relevant information.
The incoming message webhook will include a context.ad object with details about the campaign:
ad title and body
media type and URLs
AD ID and source link
conversion token (if enabled)
This allows you to:
Track the ad campaign each contact came from
Attribute leads correctly
Personalize replies based on the ad content
Assign and route new leads in your CRM
You can find the context.ad and context.conversion fields inside the webhook payload when the contact reaches you through a Meta ad.
Note: This attribution data is only available when the ad click results in a message and attribution is enabled in your WhatsApp Business settings.