Hi All,
I am currently working on a lead capture use case from social media and storing the leads in Salesforce.
In our scenario, users click on a social media ad that contains a chat button. When the user clicks this button, it opens a WhatsApp chat, and the user interacts with us through WhatsApp. From this interaction, we capture the lead details and store them in Salesforce.
However, we also want to capture and pass the marketing attribution parameters such as:
- UTM parameters
- Ad ID
- Campaign ID from the social media ad
The requirement is to store these parameters along with the lead record in Salesforce so that we can track the campaign source and performance.
Has anyone implemented a similar approach where UTM/ad campaign parameters are captured when the user clicks the chat button and opens WhatsApp, and then passed to Salesforce along with the lead details?
Any guidance, recommended approach, or documentation would be very helpful.
Hi @Amit Agrawal,
Capture UTMs on the landing page (store in cookie/localStorage), then pass a
click/session ID when opening WhatsApp.
Use backend (API/MuleSoft/WhatsApp API) to:
- Link WhatsApp user (phone) to stored UTM data
- Create Lead in Salesforce with UTM + campaign fields
Key point: WhatsApp wonβt carry UTMs directly, so attribution must be stored before redirect.
If you find this helpful feel free to mark it as Best Answer !!!! π
Thanks and Regards.