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

First steps

Register your GTM account if you did not do that yet.

  • Create new tag

    First screenshot of GTM
  • Choose tag type, and select Custom HTML

    Second screenshot of GTM
  • Paste in the JavaScript snippet found on registration page of UserEngage, knowledge base , or in integrations.

    <script data-cfasync="false" type="text/javascript">
    window.civchat = {
      // API key can be found at
      apiKey: 'YOUR_API_KEY',
      // OPTIONAL FIELD - value: simple, expanded, hidden or empty (default)
      state: 'simple'
    <script data-cfasync="false" type="text/javascript" src=""></script>
    Third screenshot of GTM

If you have any issues with this integration - feel free to contact us. We're here for you!