Hide chat completely (in widget) when offline

A feature where it is possible in the settings to show/hide chat icon inside the website widget when all agents are offline.

4replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • Thank you for your suggestion Eric, sounds like a great feature for us to look in to. 

    In the meantime we have a few options for you that might help you a little to work around this:

    1. Manually deactivate the Chat within the widget after the opening hours. 

    2. Use the JavaScript API (https://developers.trengo.com) to completely hide the widget when all agents are offline.

    3. If you don't want to provide website visitors the ability to chat outside the opening hours, you can choose to disable the feature "Show always as available". When this feature is disabled and there are no agents online, the chat will be transformed into a contact form. 

    Like 1
  • Is there an update for this one? Or do we still have to use the Javascript API for this?

  • BTW for people that are looking for a working script:


    <script type="text/javascript">
    window.Trengo = window.Trengo || {};
    window.Trengo.render = false;
    window.Trengo.key = 'key';
    (function(d, script, t) {
        script = d.createElement('script');
        script.type = 'text/javascript';
        script.async = true;
        script.src = 'https://static.widget.trengo.eu/embed.js';
    window.Trengo.on_status_online = function() {
    Like 2
  • It is still the Javascript add-on. Thanks for sharing Tim! 

Like4 Follow
  • 2 yrs agoLast active
  • 4Replies
  • 120Views
  • 3 Following