set the contactOptions, but it does't work. always enter the chat when i clicked launcher

Respondida

4 Comentarios

  • Kyle Jones
    Zendesk Customer Advocate

    Hey there 陈亦凡

    I'm very sorry to hear about the frustration. I'll need to pull this into a ticket so we can take a closer look into this for you! 

    Please keep an eye out for an email response regarding this,

    0
  • rjones

    Also having a similar issue. Seems intermittent but mostly widget defaults to chat and doesn't show contact options.

    <script id="ze-snippet" src="https://static.zdassets.com/ekr/snippet.js?key=xxxxx" data-ze-csp="true" async defer></script>
    <script>
    window.zEmbed||(function(){
    var queue = [];

    window.zEmbed = function() {
    queue.push(arguments);
    }
    window.zE = window.zE || window.zEmbed;
    document.zendeskHost = 'xxxx';
    document.zEQueue = queue;
    window.zESettings = {
    webWidget: {
    contactOptions: {
    enabled: true
    },
    zIndex: 65
    }
    };
    }());
    </script>
    0
  • rjones

    Setting the webWidget options before the script is called is the solution.

    <script type="text/JavaScript">
    window.zESettings = {
    webWidget: {
    contactOptions: {
    enabled: true
    },
    zIndex: 65
    }
    };
    </script>
    <script id="ze-snippet" src="https://static.zdassets.com/ekr/snippet.js?key=xxxxx" data-ze-csp="true" async defer></script>
    <script>
    window.zEmbed||(function(){
    var queue = [];

    ...

     

    0
  • Dave Dyson
    Zendesk Community Team

    Thanks for sharing your solution, rjones!

    0

Iniciar sesión para dejar un comentario.

Tecnología de Zendesk