• Resolved vinnard

    (@vinnard)


    Hi.

    I need help with my script and cookie

    I have this script that adds a widget to the website:

    <script type="text/javascript">
    (function(d, w, s) {
    var widgetHash = 'ldPlpmhFEP2znaSryO0B', bch = d.createElement(s); bch.type = 'text/javascript'; bch.async = true;
    bch.src = '//widgets.binotel.com/chat/widgets/' + widgetHash + '.js';
    var sn = d.getElementsByTagName(s)[0]; sn.parentNode.insertBefore(bch, sn);
    })(document, window, 'script');
    </script>

    The plugin blocks it, and the widget is not displayed on the site.
    How can I allow this script to execute only after the user accepts the cookies?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.