Track clicks with short links
A short link decouples the URL you publish from the destination you control. It keeps working when the destination changes and gives you click evidence.
1. Create the link
curl -X POST 'https://api.bonga.africa/api/v2/links' \
-H "Authorization: Bearer $BONGA_API_KEY" \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: launch-sms-2026-12' \
--data '{
"destination": "https://example.com/launch?utm_source=sms",
"hostname": "bonga.link",
"expiry_days": 90
}'
The response contains the short URL in data.url and the link ID. Keep the link ID with the campaign.
2. Use it
- Put the short link in SMS, WhatsApp and email.
- Print the QR code on physical material.
- Add UTM parameters at the destination, not in the short code.
3. Measure
When analytics is enabled, open the link detail to see clicks over time and referrer class. Compare campaigns and channels.
4. Keep it safe
- Disable a link instead of deleting the destination.
- Renew before expiry if it is still in use.
- Do not shorten untrusted destinations.
- Do not put secrets in a URL.
- Audit links that point outside your domains.