Google Tag Manager integration
GTM allows you to keep in organized way all of your tags, snippets and Javascript code.
How to set it up?
In order to add User.com to your GTM project:
- Go to your Google Tag Manager Project, and there go to Tags.
- Click on create a new Tag.
- Click Tag Configuration, there you will need to choose Custom HTML tag.
- Paste the tracking code of your marketing automation system.
- 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
apiKey: '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>
Read more about implementing Google Tag Manager on
https://docs.user.com/implementing-userengage-with-google-tag-managerLearn more
How to track scroll depth via GTM
Create an event after scrolling ⅔ of your page to trigger an action
Learn more