How to insert WidgetWhats with Google Tag Manager

Questions about WhatsApp Widget – How to add WhatsApp to your website
December 1, 2019
Chat widget for Website – How to install it
December 9, 2019

A user told us he was using Google Tag Manager to insert the code.

<script async data-id=”9999999999” src=”https://cdn.widgetwhats.com/script.min.js”></script>

If you want to do that, please use the following code replacing 9999999999 with your widget unique ID >

<script>(function(w,d,s,i){
var f=d.getElementsByTagName(s)[0],j=d.createElement(s);
j.setAttribute('data-id',i);j.async=true;j.src='https://cdn.widgetwhats.com/script.min.js';
f.parentNode.insertBefore(j,f);
})(window,document,'script',9999999999);</script>

Leave a Reply

Your email address will not be published. Required fields are marked *