Placing the Chat Widget code via Google Tag Manager

Follow these steps to add the chat widget in Google Tag Manager

  1. Log in to Google Tag Manager and go to the account you want to install the tag on.

  2. From the left menu, choose Tags and click the New button in the top right corner to add a new tag.

  3. From the menu, choose Custom HTML.

  4. Copy and paste the chatbot script from the Watermelon Dashboard. This articletells you where to find the code.

  5. 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.

  6. 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.

  7. Fill in a version name and version description. The tag can now be published!


What’s Next

Would you like to place a separate chat widget per language? Read how to set this up in Google Tag Manager!