Tracking Script (Option 2)
Use this method to add tracking to your own WhatsApp button by including our tracking script.
Use the WAConversionTracking Script with Your Button
Already have a WhatsApp button? You don’t need to replace it — just add our script and let it do the tracking work.
✅ How to Set It Up
- Go to Workflows → Actions → Generate WhatsApp Button.
- Select the tab Integration Script.
- Adjust the message template to your liking.
- ${UID} is required in your message template. This is where the UID will be inserted in the message.
- Click Generate Integration Script.
- Copy the full
<script>
code
- Paste it before the closing
</body>
tag of your site
- Integrate your WhatsApp button with the code using 1 of 2 methods.
- Add
data-wact-whatsapp="true"
to your WhatsApp button. - Set your WhatsApp button to call redirectToWhatsApp() when clicked.
🔍 Notes
- Script injects UID at runtime
- GCLID is captured automatically
- Works on any site — no GTM or analytics needed