---
title: "Intercom"
type: "wiki"
space: "Axero Documentation"
author: "Anonymous User"
created: 2020-01-03T20:02:19Z
updated: 2026-09-07T00:27:05Z
url: "https://my.axerosolutions.com/spaces/5/axero-documentation/wiki/view/38102/intercom"
---

# Intercom

You can install Intercom for logged in users of your Axero site by following Intercom's guide here: https://www.intercom.com/help/en/articles/2631808-install-intercom-with-google-tag-manager#install-intercom-with-gtm-for-logged-in-users-of-your-web-apphttps://www.intercom.com/help/en/articles/2631808-install-intercom-with-google-tag-manager#install-intercom-with-gtm-for-logged-in-users-of-your-web-app

## Installing Google Tag Manager

This integration needs [Google Tag Manager](https://tagmanager.google.com/) installed on your site. To install Google Tag Manager on your site, follow the instructions [here](https://support.google.com/tagmanager/answer/6103696?hl=en), or in this video below. Google Tag Manager will provide you with two snippets, one that needs to be insert in the header and one in the footer of your site. These options can be found in **Control Panel** &gt; **General Settings** &gt; **Header and Footer Scripts.**

## Installing Intercom

Depending on your exact use case, install Intercom following their instructions [here](https://www.intercom.com/help/en/). Once Intercom is installed, you will be able to add custom data about your users following the steps below.

## Tracking custom data about your users

Using Intercom's ‘Custom Data Attributes’, you can track any user information in Intercom that’s important to your business.

By default, the following variables are available to use on Axero pages:

- CF\_USERID: the user ID of the logged in user
- CF\_USER\_DISPLAY\_NAME: the user display name of the logged in user
- CF\_SPACEID: the space ID of the page or content being viewed

You can make additional variables availe to use on Axero pages by accessing [REST API: Get User](https://my.axerosolutions.com/spaces/5/axero-documentation/wiki/view/404/rest-api-get-user "REST API: Get User") or [REST API: Get User Profile Fields](https://my.axerosolutions.com/spaces/5/axero-documentation/wiki/view/30567/rest-api-get-user-s-profile-fields "REST API: Get User Profile Fields") from the header script in General Settings:

1. Navigate to the **Control Panel** &gt; **System** &gt;**General Settings**
2. Expand the **Header and Footer Scripts**section and update the **Header Script** with the following code:

```
<script>
fetch(`/api/users/${CF_USERID}/details`)
  .then(response => response.json())
  .then(data => {
    CF_Email = data.ResponseData.Email;
  })
  .catch(error => console.error(error));
</script>
```

This code can be modified to add additional variables that are available on the user's profile. If you need assistance modifying this script for additional variables, open a support case.

#### Related pages

- [Header and Footer Scripts](https://my.axerosolutions.com/spaces/5/axero-documentation/wiki/view/22192/header-and-footer-scripts "Header and Footer Scripts") \(where the header and footer scripts are pasted\)
- [REST API: Get User](https://my.axerosolutions.com/spaces/5/axero-documentation/wiki/view/404/rest-api-get-user "REST API: Get User") \(the user details call the script makes\)
- [Third-Party Integrations](https://my.axerosolutions.com/spaces/5/axero-documentation/wiki/view/21842/third-party-integrations "Third-Party Integrations") \(the other services Axero connects to\)
