Skip to main content

Implementing Chat Functionality Using Google Tag Manager

Chat functionality on your webshop can greatly enhance customer support and engagement. Google Tag Manager (GTM) provides a convenient way to implement chat solutions without modifying your website's code.

note

For this functionality to work, you need a Google Tag Manager account as well as an account with a chat service provider.

  1. Choose your chat service provider and sign up for an account. You will need the provider's embed code or instructions to proceed.
  2. Open the Google Tag Manager at tagmanager.google.com. Log in to your account and add a new Tag:
    • In your GTM container, click on Tags in the left sidebar.
    • Click New to create a new tag.
    • Name your tag (for example, Chat Widget).
    • Select the tag type that your chat provider recommends (usually: Custom HTML or Custom JavaScript).
    • Copy and paste the chat provider's embed code or script into the HTML/JavaScript field.
    • Set the trigger to All Pages or to specific pages where you want the chat to appear.
    • Save the tag.
  3. Click Submit in the top-right corner of GTM to publish your changes to your webshop.

It is crucial to test the chat functionality to ensure that it works as expected:

  • Visit your webshop to see if the chat widget appears.
  • Initiate a chat to verify that it connects to your chat service provider.