Keep campaign context when visitors move to a messenger
A visitor arrives from an ad, browses your WordPress website and opens Telegram or Viber instead of submitting a form. A standard messenger link does not automatically carry the page's UTM parameters, so the enquiry can lose its connection to the campaign.
Zuzlan Messenger UTM is a custom-built WordPress plugin that captures utm_source, utm_medium and utm_campaign, stores them in the visitor’s browser and adds the saved values to configured messenger links. Built for a commissioned project, it addresses enquiries through Telegram bots and Viber business chats.
Pass UTM parameters to Telegram and Viber
The plugin prepares Telegram bot links using the start parameter and Viber bot links using context. For example, a visit tagged google / cpc / autumn_sale can produce the payload s_google__m_cpc__c_autumn_sale.
The receiving bot or messaging integration must process that payload. This project uses HelpCrunch in the messaging flow connected to Odoo CRM. Saving the campaign data in CRM depends on that downstream configuration; the WordPress plugin prepares the links.
Retain saved UTM values across return visits
Each UTM field keeps its latest non-empty value in localStorage. A later visit without UTM parameters leaves the saved values in place. A visit with only a new utm_campaign updates the campaign while retaining the previous source and medium.
This is a set of saved values, not a complete history of advertising visits. With partial UTM links, the resulting source, medium and campaign can come from different visits.
WordPress integration and messenger link limits
The solution is packaged as a WordPress must-use plugin, installed in wp-content/mu-plugins/ without editing the theme. It handles matching links in the page and dynamically added buttons.
Telegram start payloads have a 64-character limit. The plugin normalises campaign values and shortens long ones, so the transferred value may differ from the original campaign name. It passes UTM values supplied in the URL; it does not identify an untagged advertising campaign on its own.
Discuss an implementation for your WordPress website
Need a similar setup for your WordPress website? Email the developer with the messenger bots you use and where enquiries should arrive. This commissioned project is presented as an implementation case; contact the developer to discuss your own requirements.