CTRLK

Shared components

URL shortening and click tracking

|

View as Markdown

Infobip enables URL shortening and tracking for ZBS Template Messages, allowing businesses to monitor link clicks only for CTA (call-to-action) buttons. Customers can use URL shortening in two ways:

Shortening URLs inside placeholders

You can register a template placeholder (param1) for URLs. Infobip automatically shortens them when sending messages if shortening is enabled. These shortened links are not clickable in the Zalo app on mobile devices, so click tracking is not available.

Tracking clicks on URLs in CTA buttons

For click tracking, the template must include a CTA button with a custom domain at the time of creation. The button URL must be in the following format: https://<custom_domain>/<param1>.

The param1 parameter is a registered placeholder that will be replaced with the full URL when sending the message. The custom domain must be verified for the customer account. The domain is permanent once set.

Click tracking is only available for URLs inside CTA buttons. URLs in CTA buttons cannot be shortened if the template was not initially created for tracking.

Important considerations

  • All placeholders in a template will be shortened. You cannot selectively exclude certain parameters.
  • Only CTA button templates enable click tracking. Shortened URLs in template placeholders are not clickable.
  • Always provide the full original URL as the parameter value for CTA button templates. Infobip will automatically shorten it.
  • Do not manually insert a pre-shortened URL as the parameter value.
  • Once registered, the CTA button domain cannot be modified, and tracking cannot be enabled for templates not originally created for this purpose.

Tracking and shortening is available over:

  • Standalone Zalo ZNS API
  • Broadcast (web interface)
Was this page helpful?