
Acuity Scheduling GTM Event Listener
How to install the free Acuity Scheduling listener Acuity needs two small pieces: a sender inside Acuity and a listener in Google Tag Manager.…
acuity_booking Get the code
Free Zoho SalesIQ tracking code for GTM. Tracks chat starts, offline messages, button clicks and ratings as one clean event, ready for GA4 and Google Ads.

Copy this into a Custom HTML tag in Google Tag Manager. It pushes zoho_salesiq_event to the dataLayer when the Zoho SalesIQ form is sent.
<script>
/* Zoho SalesIQ listener by MD Niamul - mdniamul.com
Fires zoho_salesiq_event with an "action" for the SalesIQ chat
widget: button clicks, chat started, agent joined, offline message,
chat ended, rating and feedback. Waits for the widget to load. */
(function () {
if (window.__mdnSalesIQBasic) return; // tag fired twice: keep one copy
window.__mdnSalesIQBasic = true;
window.dataLayer = window.dataLayer || [];
var last = {};
function once(key, ms) { // same action + chat inside ms: skip
var now = new Date().getTime();
if (last[key] && (ms === 0 || now - last[key] < ms)) return false;
last[key] = now;
return true;
}
function push(action, extra) {
var o = { event: 'zoho_salesiq_event', action: action, page_path: window.location.pathname };
for (var k in extra) if (extra.hasOwnProperty(k)) o[k] = extra[k];
window.dataLayer.push(o);
}
function on(group, name, fn) { // register only if this SalesIQ version has it
try {
var g = window.$zoho.salesiq[group];
if (g && typeof g[name] === 'function') g[name](function () {
try { fn.apply(null, arguments); } catch (e) {}
});
} catch (e) {}
}
function idOf(visitid, data) { return String(visitid || (data && data.visitid) || 'chat'); }
var done = false;
function register() {
if (done) return;
var s = window.$zoho && window.$zoho.salesiq;
if (!s || !s.visitor || typeof s.visitor.chat !== 'function') return;
done = true;
on('chatbutton', 'click', function () { if (once('chatbutton_click', 1000)) push('chatbutton_click', {}); });
on('floatbutton', 'click', function () { if (once('floatbutton_click', 1000)) push('floatbutton_click', {}); });
on('floatwindow', 'minimize', function () { if (once('floatwindow_minimize', 1000)) push('floatwindow_minimize', {}); });
on('floatwindow', 'close', function () { if (once('floatwindow_close', 1000)) push('floatwindow_close', {}); });
on('visitor', 'chat', function (visitid, data) { if (once('chat|' + idOf(visitid, data), 0)) push('visitor_chat', {}); });
on('chat', 'attend', function (visitid, data) { if (once('attend|' + idOf(visitid, data), 0)) push('chat_attended', {}); });
on('visitor', 'offlineMessage', function (visitid, data) { if (once('offline|' + idOf(visitid, data), 5000)) push('offline_message', {}); });
on('visitor', 'chatcomplete', function (visitid, data) { if (once('complete|' + idOf(visitid, data), 0)) push('chat_complete', {}); });
on('visitor', 'rating', function (visitid, data) { if (once('rating|' + idOf(visitid, data), 3000)) push('visitor_rating', { rating: data && data.rating != null ? String(data.rating) : '' }); });
on('visitor', 'feedback', function (visitid, data) { if (once('feedback|' + idOf(visitid, data), 3000)) push('visitor_feedback', {}); });
}
// SalesIQ loads late (defer). If its embed code already ran, hook into
// its ready call without removing the site's own ready code. Never
// create $zoho ourselves: older embed codes would lose their widget code.
// A 300 ms check covers every other load order.
try {
if (!window.$zoho || !window.$zoho.salesiq) throw 0;
var prev = window.$zoho.salesiq.ready;
window.$zoho.salesiq.ready = function () {
try { if (typeof prev === 'function') prev.apply(this, arguments); } catch (e) {}
register();
};
} catch (e) {}
var tries = 0;
(function wait() { register(); if (!done && ++tries < 100) setTimeout(wait, 300); })();
})();
</script>
This code is also on GitHub with a README and version history: github.com/mdniamul0/zoho-salesiq-gtm-listener
zoho_salesiq_eventzoho_salesiq_event, use it on your GA4, Google Ads or Meta tag, then Preview and Publish.After you install the code and send a test entry, this is the data that shows up in GTM. You don’t need to paste it anywhere. Use it to check the listener works and to create Data Layer Variables such as form_id.
{
event: 'zoho_salesiq_event',
action: 'visitor_chat',
page_path: '/pricing/'
}zoho_salesiq_event. Add a Data Layer Variable for action.action equals visitor_chat (chat started) or offline_message (message left while you were offline).generate_lead event, a Google Ads conversion or a Meta Pixel Lead event on that trigger. Use the other actions, such as chatbutton_click or visitor_rating, as normal GA4 events.zoho_salesiq_event shows up once per action. Then publish your container.Good to know: the free code sends only the action name, never the visitor’s name, email or typed messages, so nothing personal reaches GA4. Agent messages are not tracked one by one: chat_attended fires once when an agent joins the chat.
Want leads from chat to show up in Google Ads properly? See my Zoho conversion tracking service and my Google Ads tracking specialist page.
The free code tells GTM that a lead happened. The advanced code tells your ad platforms who the lead is and where they came from.
| What you get | Basic Free | Advanced Paid |
|---|---|---|
| Fires only on a successful submit or booking | Yes | Yes |
| Form or platform ID in the dataLayer | Yes | Yes |
| UTM source, medium, campaign, term and content | No | Yes |
| Ad click IDs (gclid, wbraid, gbraid, fbclid, ttclid, msclkid) | No | Yes |
| SHA-256 hashed email, phone and name | No | Yes |
| First-party cookies (_fbp, _fbc, _ga, _gcl_aw) | No | Yes |
| Device, browser and visitor location | No | Yes |
| event_id for Pixel and CAPI deduplication | No | Yes |
| Ready for Google Ads Enhanced Conversions and Meta CAPI | No | Yes |
| Install help from MD Niamul | No | Yes |
Built for agencies and brands that run paid ads. Every lead carries the data that Meta, Google Ads, TikTok and GA4 need to match the person and credit the right campaign.
One-time price. Start with the code, or let me set everything up for you.
You install it yourself
We set it up together
I install and test it
Browser + server tracking
Stape.io plan paid separately
Server-side: Server-side tracking runs on Stape.io. The Stape plan is not included: you pay Stape directly (they have a free plan for small sites). I set it up on your account. Get Stape (global) · Stape EU server
One-time prices in USD. You pay me directly and get an invoice in your client portal.
Not sure which one fits? Message me and I will tell you what you need.
Already bought the advanced code? Get it in your client portal.
Use visitor_chat (the visitor started a chat) and offline_message (they left a message while no agent was online). Button clicks and ratings are better as normal GA4 events.
No. The code waits for the widget and also hooks into SalesIQ's ready call without removing your own ready code. Older scripts that call $zoho.salesiq directly break when GTM loads first.
No. It only works on your website pages where both GTM and the SalesIQ widget load. If another script on your site also sets the same SalesIQ callbacks, keep only one of them, because SalesIQ may keep only the last one.
Message me on WhatsApp. After payment I add it to your client portal with the code, a setup video, a PDF guide and a GTM import file.
Yes. The basic code on this page is free to copy and use on your own or your clients’ sites. It fires the zoho_salesiq_event event when the Zoho SalesIQ form is sent.
The basic version only tells GTM that a lead happened. The advanced version also sends UTM values, ad click IDs, hashed email and phone, first-party cookies, device and location data and an event_id, so Meta CAPI, Google Ads Enhanced Conversions and GA4 get much better data.
Message me on WhatsApp, book a call or use the contact form. It is a paid, one-time purchase, and I can install it for you if you like.
No. The listener runs inside Google Tag Manager and listens for the form’s own success signal. You don’t need to edit the form or your theme.
💬 Want this implemented without mistakes?
I’ve completed 850+ projects for 600+ businesses and 15+ agencies, helping clients generate $11M+ in revenue with accurate client-side & server-side tracking and business automation.
⮏ My core services include:
⨭ GoHighLevel Automation — build CRM pipelines, WhatsApp automation, AI voice workflows & automated follow-ups end-to-end.
⨭ AI Agent Automation — deploy AI chatbots & agents for 24/7 lead qualification and support.
⨭ Paid Ads Management — Google Ads, Meta Ads.
⨭ Full Stack SEO/GEO/AEO Manager.
⨭ CRO-Focused Web Development — Landing Pages on WordPress, Shopify, Wix, Squarespace.
⨭ Google Tag Manager (GTM) — manage data layers & (Marketing platform Tag, Trigger & Variables).
⨭ Custom Code by GTM — HTML, CSS & JavaScript for advanced marketing platform tracking.
⨭ Server-Side Tracking — recover data lost to ITP & ad blockers (Official Stape Partner).
⨭ Google Analytics 4 (GA4) — visualize customer journeys.
⨭ Multi-Channel CAPI — Facebook, TikTok, Pinterest & Snapchat Conversion API & Klaviyo email marketing tools.
⨭ Third Party Checkout Conversion Tracking — Shopify, Stripe, GoKwik, Shiprocket, PayPal or more.
⨭ Google Consent Mode (GCM) — maintain GDPR compliance.
⨭ Marketing Automation — streamline workflows (Zapier/n8n/Make).
⨭ CRM Conversion Tracking — link offline sales to ads.
⨭ Tag Management — GTM & Third-Party Checkout Tracking.
⨭ Offline & CRM Tracking — HubSpot, Salesforce, Zoho, Pipedrive, Odoo, Webhook & Sheet.
⨭ Advanced Analytics — GA4, Google Looker Studio & BigQuery (SQL) for deep data visualization.
If you want your Zoho SalesIQ Tracking done right the first time, message me.