Click tracking
Set it up on the template
When you create the template, give the URL button exactly this link:
https://api.wamafy.com/r/{{1}}Meta asks for an example value for the placeholder; anything will do, such as abc123. This has to be decided when the template is approved. A template already approved with an ordinary link needs creating again.
Send your real link
When you send, put the full destination as the button's value. Wamafy swaps in a one-off link for that recipient, records the tap and forwards them to your page.
{
"to": "+919876543210",
"templateName": "order_update",
"variables": {
"1": "Priya",
"2": "#1043"
},
"buttons": [
{
"index": 0,
"type": "url",
"value": "https://yourshop.com/orders/1043"
}
]
}This is the one case where value is a whole URL. For an untracked button with a link like https://yourshop.com/{{1}} you send only the part after the prefix, such as orders/1043. Wamafy knows which kind of button it is from the template, so there is no setting to get wrong. List templates shows tracked: true on tracked buttons.
Seeing the clicks
- Get message status fills in
clickedAt. - The status webhook sends a
clickedevent, once per message. - An API campaign's report in the dashboard shows who clicked and who did not.
A link forwarded and tapped several times still counts as one click for that recipient.