> For the complete documentation index, see [llms.txt](https://docs.reo.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.reo.dev/integrations/input-sources/developer-insights/documentation.md).

# Documentation

### Overview

More often than not, **developers evaluate your product in incognito mode**. They read your docs, run installs, and test features on their own terms.&#x20;

By the time that activity surfaces as a lead, they may have already evaluated you, built something in-house, or picked a competitor.

**Connecting your documentation to Reo.dev closes that gap.**&#x20;

Once installed, Reo.dev identifies the developers and accounts behind your docs traffic, including the ones who never fill out a form. That activity flows into their account and developer profiles, segments, and alerts.&#x20;

**GTM teams get a live view of who's evaluating your product and how they're engaging with your docs, instead of finding out after the deal has already moved on.**

The setup has 4 steps:&#x20;

{% stepper %}
{% step %}

### [Add the URLs you want to track](#step-1-add-your-documentation-urls)

{% endstep %}

{% step %}

### [Mark high-intent pages for separate tracking (optional)](#step-2-configure-key-pages-optional)

{% endstep %}

{% step %}

### [Get your client ID and tracking snippet](#step-3-get-your-client-id-and-tracking-snippet)

{% endstep %}

{% step %}

### [Choose an installation method](#step-4-choose-the-installation-method)

*Based on how your documentation is built*
{% endstep %}
{% endstepper %}

***

### Step 1: Add your documentation URLs

1. From the left menu, navigate to **Settings → Integrations.**&#x20;

<figure><img src="https://2705882080-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx46P5sAHxDG7PqOdVLxI%2Fuploads%2F4CjXxPkE5KlRNDLGKiFK%2FScreenshot%202026-09-09%20at%209.44.33%E2%80%AFAM.png?alt=media&amp;token=000a9cd2-d1c4-4b51-8ce5-ed418bcb9689" alt=""><figcaption></figcaption></figure>

2. Click **Configure** on the **Documentation** card.

<figure><img src="https://2705882080-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx46P5sAHxDG7PqOdVLxI%2Fuploads%2FNmNsBZaHvzH6AL7V0L45%2FScreenshot%202026-09-09%20at%2010.28.15%E2%80%AFAM.png?alt=media&amp;token=89abf175-deb1-48a1-a5a6-431a61b6ff30" alt=""><figcaption></figcaption></figure>

3. Enter each documentation URL you want to track, exactly as it appears in your browser's address bar.
   1. For example, <mark style="color:red;">`docs.reo.dev`</mark> for product documentation, or <mark style="color:red;">`developers.reo.dev`</mark> for developer documentation.
4. Click **Add New** to track more than one.
5. Give each URL a clear **Page Name**. You'll use it later to filter and segment your data.

<figure><img src="https://2705882080-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx46P5sAHxDG7PqOdVLxI%2Fuploads%2Fg16CvZs94v0Si7G3oEd7%2FScreenshot%202026-09-09%20at%2010.30.02%E2%80%AFAM.png?alt=media&amp;token=75d153ee-8f1d-4fe5-b38c-1fea2fa4c93f" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Tip:** Use these pages to build a segment of developers or accounts interacting with a specific documentation site. The Page Name you set here becomes a filter when you create that segment.
{% endhint %}

***

### Step 2: Configure key pages (optional)

Pages like API references, troubleshooting guides, and installation docs often signal strong buying intent. We recommend tracking these separately so you can see their activity on its own.

This is on the same [**Configure screen as Step 1**](#step-1-add-your-documentation-urls)**,** in the **Add Key Pages (Optional)** section.

To track a key page:

1. Click **+ Add New** to add a row.
2. Enter its specific URL, exactly as it appears in your browser's address bar.
3. Assign it a unique Page Name.

<figure><img src="https://2705882080-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx46P5sAHxDG7PqOdVLxI%2Fuploads%2FG31iXMai6Xs6Jf4yGYyO%2FScreenshot%202026-09-09%20at%2010.31.33%E2%80%AFAM.png?alt=media&amp;token=395a6ed2-165b-4ddb-8dee-e3ef3078772b" alt=""><figcaption></figcaption></figure>

#### **Tracking dynamic URLs using wildcards**

If your URLs include dynamic segments, like a project ID or org name, track every variation as one Key Page. Use <mark style="color:red;">`*`</mark> as a wildcard for the dynamic part.

For example, to track the journeys page across every project, set the URL to <mark style="color:red;">`/project/*/journeys`</mark>. Reo captures every URL that matches this pattern, no matter what replaces the <mark style="color:red;">`*`</mark>.

Wildcards can appear mid-URL too, like <mark style="color:red;">`abc.com/id/*/orgpage`</mark>. Skip trailing wildcards, like <mark style="color:red;">`abc.com/page/*`</mark>, since Reo already captures everything after the last <mark style="color:red;">`/`</mark>.

<figure><img src="https://2705882080-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx46P5sAHxDG7PqOdVLxI%2Fuploads%2FR8P2qKUoqeP9otLmEscL%2FScreenshot%202026-09-09%20at%2010.34.05%E2%80%AFAM.png?alt=media&amp;token=032d319d-f090-43d9-87f3-3ef0a1da1a2b" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Tip:** You can create a segment to track accounts, developers, or buyers who visited these pages. The page name appears under the **Key Docs Pages filter** when you build that segment.
{% endhint %}

***

### Step 3: Get your client ID and tracking snippet

Every method below needs these two things. Get them once, then pick your method.

#### **What's a Client ID, and where do I find it?**

* Your Client ID is a unique key that connects this snippet to your Reo.dev account. Without it, Reo.dev has no way to tell which account the tracking data belongs to.
* The same ID works across every tracking type (Documentation, Website, Product, Forms), so reuse it if you've already copied it elsewhere.
* You can find your client ID on top of the Documentation page within the Reo product. Copy the client ID.&#x20;

<figure><img src="https://2705882080-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx46P5sAHxDG7PqOdVLxI%2Fuploads%2FZDz9Ob4A7KXagYfS7mTV%2FScreenshot%202026-09-09%20at%2010.34.39%E2%80%AFAM.png?alt=media&amp;token=a69228fe-2fe8-4fb1-9784-a64b4cd9c6f4" alt=""><figcaption></figcaption></figure>

#### Copy the tracking code

* On the same page, under Step 3 (Install Tracking Pixel), you will find the tracking code.
* Copy the tracking snippet below, and replace <mark style="color:green;">`xxxxxxxxxx`</mark> with your Client ID.

```javascript
<!-- Start of Reo Javascript -->
<script type="text/javascript">  
	!function(){var e,t,n;e="xxxxxxxxxx",t=function()
{Reo.init({clientID:"xxxxxxxxxx"})},
(n=document.createElement("script")).src="https://static.reo.dev/"+e+"/reo.js",n.defer=!0,n.onload=t,document.head.appendChild(n)}();
</script>
<!-- End of Reo Javascript -->
```

***

### Step 4: Choose the installation method

Once you have your client ID and the tracking code, all you have to do is install the tracking snippet using the method that matches how your documentation site is built.

**Choose from the following methods:**&#x20;

{% columns %}
{% column %}
**If you can edit your documentation's HTML directly**

[Refer to Method 1](#method-1-paste-the-snippet) to paste the tracking snippet inside the header
{% endcolumn %}

{% column %}
**If you are using Google Tag Manager for your documentation**\
\
[Refer to Method 2](#method-2-google-tag-manager) and install using Google Tag Manager (GTM)
{% endcolumn %}

{% column %}
**If your documenation is built on npm-based JavaScript project**\
\
[Refer to Method 3](#method-3-npm-package) and install using NPM package
{% endcolumn %}

{% column %}
**If you are using Gitbook, Mintlify, Docusaurus, or Next.js**\
\
[Refer to Method 4](#method-4-direct-integration), and follow the guide for your respective platform
{% endcolumn %}
{% endcolumns %}

Still not sure? Ask whoever manages your documentation site's code.

***

### **Method 1: Paste the snippet**

Paste the snippet you copied above inside the <mark style="color:red;">`<header>`</mark> tag of your documentation site. This is usually in the site's main template or layout file, the one that loads on every page (for example <mark style="color:red;">`header.html`</mark>, <mark style="color:red;">`_document.tsx`</mark>, or your theme's base layout).&#x20;

If you're not sure where that is, ask whoever manages your site's code, or use one of the other methods below.

***

### **Method 2: Google Tag Manager**

Add the snippet above as a custom HTML tag in Google Tag Manager. See the [Google Tag Manager guide](https://docs.reo.dev/install-javascript-for-website-documentation-through-google-tag-manager) for setup steps.

***

### **Method 3: NPM package**

Install the Reo.dev NPM package if your documentation site is built with npm. See the [NPM package guide](https://docs.reo.dev/install-javascript-using-npm-package) for setup steps.

***

### **Method 4: Direct integration**

Connect directly through your documentation platform:

* [Gitbook](https://docs.reo.dev/integrations/developer-docs/gitbook)
* [Mintlify](https://docs.reo.dev/integrations/developer-docs/mintlify)
* [Docusaurus](https://docs.reo.dev/integrations/developer-docs/docusaurus)
* [Next.js applications](https://docs.reo.dev/integrations/developer-docs/next-applications)

***

### Troubleshooting

#### **Verify the snippet is installed**

The fastest way: on the Documentation configuration page (**Settings → Integrations → Documentation → Configure**), click **Check status** in the top-right corner. It tells you whether Reo.dev is receiving data from your site.

<figure><img src="https://2705882080-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx46P5sAHxDG7PqOdVLxI%2Fuploads%2FEsfZsB9m3QbmqOrCzryL%2FScreenshot%202026-09-09%20at%2011.28.54%E2%80%AFAM.png?alt=media&amp;token=7598fdf4-1519-4ad1-9ccc-a80c6b473c93" alt=""><figcaption></figcaption></figure>

To check manually instead:

1. Open your documentation page
2. Right-click anywhere on the page and select **Inspect** to open developer tools
3. In the **Network tab**, search for <mark style="color:red;">`reo`</mark> and check if the network calls are being registered (status code: 200)

***

### Error scenarios

#### **1. The script doesn't load**

The tracking snippet only runs after it downloads successfully from the Reo.dev CDN. A failed download doesn't break your page, it just means that visit isn't tracked. It also won't throw visible errors in the browser console, since the script runs inside a try-catch block with logging disabled. No action is needed. Use the [verification steps above](#verify-the-snippet-is-installed) if you want to confirm the snippet is live.

#### **2. Reo tokens are deleted**

If all Reo tokens are deleted, the most recent event may fail to send. Tracking recovers on its own, and subsequent calls work normally. No action is needed.

#### **3. Avoid duplicate installs**

Don't install the tracking snippet more than once on the same page. Multiple copies can conflict with each other.

Still stuck? Contact your Customer Success Manager on Slack, or email [**support@reo.dev**](mailto:support@reo.dev).

***

### CSP requirements

If your site enforces a Content Security Policy (CSP), allow these domains. This is usually set in your site's HTTP response headers or a CSP meta tag, ask whoever manages your hosting if you're not sure where.

* <mark style="color:red;">`script-src <https://static.reo.dev>`</mark>
* <mark style="color:red;">`connect-src <https://api.reo.dev>`</mark>

For cookies and data handling, see the [cookie management guide](https://docs.reo.dev/integrations/tracking-beacon/reo.dev-javascript-cookies-and-consent-guide).

***

### FAQs

* **Is the tracking script safe to install?**\
  Yes, it's been tested to rule out vulnerabilities or risks, and all data is transmitted over HTTPS.<br>
* **Does it use external dependencies?**\
  Yes, a small number of third-party libraries. These are checked for vulnerabilities.<br>
* **Does it collect personal information (PII)?**\
  No, it collects anonymous data only, such as browser information, page views, and click events, and never collects non-consented PII.<br>
* **Will it slow down my page?**\
  No, it loads asynchronously, so it doesn't block your page from rendering, and it's built to have minimal impact on load time.<br>
* **Which browsers and devices does it support?**\
  Chrome, Firefox, Safari, Edge, and Brave, on both desktop and mobile.<br>
* **Will visitors notice any change to the site?**\
  No, it runs in the background and doesn't add any visible or intrusive elements.<br>
* **What happens if the script hits an error?**\
  It fails safely. Built-in safeguards stop it from interrupting your site's core functionality.<br>
* **Does it hold up under high traffic?**\
  Yes, it's built to keep performing as your site's traffic grows.<br>
* **Is it compliant with GDPR and CCPA?**\
  Yes, in how it handles data privacy and user consent.<br>
* **Does it track when someone copies a command from my docs?**\
  Yes, by default. Reo.dev tracks copied text, package manager commands, and CLI commands, since copying an install command is one of the strongest signals that a developer is about to try your product. If you'd rather turn this off, add the `dnt: ["copy"]` flag when you initialize Reo.<br>
* **Can I track versioned or multi-language documentation?**\
  There's no dedicated versioning feature, but you can track each version or language separately. Add each one as its own URL in Step 1, for example <mark style="color:red;">`docs.example.com/v1`</mark> and <mark style="color:red;">`docs.example.com/v2`</mark>, or <mark style="color:red;">`docs.example.com/en`</mark> and <mark style="color:red;">`docs.example.com/fr`</mark>.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.reo.dev/integrations/input-sources/developer-insights/documentation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
