Gorgias logo
Gorgias logo

All articles

Disable SegmentUpdated a month ago

This suggestion isn't an official feature of our Chat widget, so our support for it is limited - we recommend that it be implemented by someone with a technical background.


To disable Segment (a script used to gather analytics), use the following script:

1<script>
2var initGorgiasChatPromise = (window.GorgiasChat) ? window.GorgiasChat.init() : new Promise(function (resolve) { window.addEventListener('gorgias-widget-loaded', function () { resolve();})});
3
4initGorgiasChatPromise.then(function() {
5 GorgiasChat.disableSegment()
6})
7</script>


It should be placed at the top of the customization scripts, so that the script doesn't get triggered by another API request.
Was this article helpful?
Yes
No