Placing the Chat Widget code via Google Tag Manager
Follow these steps to add the chat widget in Google Tag Manager
-
Log in to Google Tag Manager and go to the account you want to install the tag on.
-
From the left menu, choose Tags and click the New button in the top right corner to add a new tag.
-
From the menu, choose Custom HTML.
-
Copy and paste the chatbot script from the Watermelon Dashboard. This articletells you where to find the code.
-
At Triggers you can specify on which pages the Chat widget should be loaded. If you want the Chat widget to be displayed on all pages, select All Pages. Attention! Don't forget to enable support document.write.
-
Now click Save in the top right corner to save the new tag. You can now start sending the change to the Tag Manager. You do this by clicking on Send at the top right of the page.
-
Fill in a version name and version description. The tag can now be published!
Updated about 2 months ago
Would you like to place a separate chat widget per language? Read how to set this up in Google Tag Manager!