google tag manager

Google tag manager integration

GTM allows you to easily add different kind of services, javascript codes or just custom HTML to your website.

NOTE: You cannot set user first name, last name and email address - until you can pass through the variable inside GTM snippet.

In order to add User.com to your GTM project:

  1. Go to your Google Tag Manager project, and there go to Tags.
  2. Click on create a new Tag.
  3. Click Tag Configuration, there you will need to choose Custom HTML tag.
  4. Paste the tracking code of your marketing automation system.
  5. Paste in the following JavaScript snippet:

<script data-cfasync="false" type="text/javascript">
  window.civchat = {
      // You can find your API key and app domain by going to your app and selecting Setup & Integrations in App Settings
    state: 'YOUR_API_KEY'
  };
</script>
// You can find your API key and app domain by going to your app and selecting Setup & Integrations
<script data-cfasync="false" type="text/javascript" src="https://<your_app_subdomain>.user.com/widget.js"></script>
          
  1. In the window, Triggering, choose All Pages as the trigger
  2. In Tag firing options, select Once per page.

Read more about implementing Google Tag Manager on https://docs.user.com/implementing-userengage-with-google-tag-manager/