How to insert WidgetWhats with Google Tag Manager

Google Tag Manager is an excellent solution for managing tags on your website, such as JavaScript tags for marketing optimization and measurement. In GTM’s user interface you can add and update tags without having to edit your website’s code. This way, you can reduce errors and implement tags in the blink of an eye.

To insert the WidgetWhats code via Google Tag Manager start by going to the Widgets section in your WidgetWhats account and localize your widget ID number (as you can see in this example image the ID is 2092).

Find your widget ID number

Once you have identified your widget ID number follow this steps in Google Tag Manager:

  1. Go to your Google Tag Manager account
  2. Click on “New Tag”
  3. Click on “Tag Configuration” and select “Custom HTML”
  4. Copy the code below of alternate method and paste in the HTML section
  5. Replace "my_widget_ID" with your widget ID number
  6. Click on “Triggering” and select “All Pages”
  7. Set your tag name (e.g. WidgetWhats Script) and Save

Alternate method to insert WidgetWhats’ widget

<script>(function(w,d,s,i){
var f=d.getElementsByTagName(s)[0],j=d.createElement(s);
j.async=true;j.src='https://s.widgetwhats.com/wwwa.js';
w.wwwaID=i;f.parentNode.insertBefore(j,f);
})(window,document,'script',my_widget_ID);</script>

Replace "my_widget_ID" with your widget ID number.

Share on facebook
Share on twitter
Share on linkedin

Turn your visitors into customers.

Create a free account.

Related articles

How to add Widget WhatsApp to Elementor

If you use the visual layout for WordPress Elementor, it will be very easy to add the WidgetWhats on your website. You can follow these

How to add Widget WhatsApp to Blogger

You can use the “Add a Gadget” feature to add WidgetWhats code to your Blogger site. First of all, from the Blogger dashboard go to

How to add Widget WhatsApp to Webflow

Add custom code and scripts that apply to your entire site or individual pages. If you have a paid Webflow account or if your project has an

How to add Widget WhatsApp to Shopify website

Adding your widget to a specific page Open your website’s visual editor.Login to your Shopify website’s backend, go to Online Store and select Customize. Add Custom Content section

Categories