> 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

Reo.Dev can track developers who access your documentation to analyze their interactions and transform this data into actionable insights for your sales funnel. All you have to do is simply add the JavaScript code generated by Reo.Dev on relevant sections of your documentation.

1. Start by clicking on **Integrations**&#x20;

<figure><img src="/files/bC1LTHQeThxITa3mT2VP" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/xBMPFh9yhYI8rq1pQrkq" alt=""><figcaption></figcaption></figure>

#### **Step 1: Configure Documentation URL**

1. **Add the documentation URLs** you want to track. You can choose to add multiple base and sub-domain URLs by clicking on ‘Add New’.

<figure><img src="/files/cWvylAGd3ygCA7uF50M2" alt=""><figcaption></figcaption></figure>

2. **Add a Page Name** for each base URL

<figure><img src="/files/pKBG0hjI6pp4B4aerS7a" alt=""><figcaption></figcaption></figure>

Once added, you can create a Segment to view accounts/developers/buyers interacting with each documentation site. The page name will appear under the ‘**Key Docs’** filter while creating segments.

#### Step 2: Add Key Pages

This is an optional step. But we highly recommended adding your high-intent pages e.g, Troubleshooting, API Reference, Installation Guides as key pages so you can track activities on these pages separately.

1. **Add URLs of specific doc pages** you want to track activities on

<figure><img src="/files/WhAhhkuwe1JuSlcnEbmC" alt=""><figcaption></figcaption></figure>

2. **Add a Page Name** for each URL

<figure><img src="/files/T3q86bhAylW134Klp1CX" alt=""><figcaption></figcaption></figure>

**Tracking dynamic URLs with wildcards**

If your URLs include dynamic segments — like a project ID or org name — you can track them as a single Key Page by using `*` as a wildcard in place of the dynamic part.&#x20;

For example, to track the journeys page across every project - you can set up the URL as `/project/*/journeys`

Reo will capture all URLs matching this pattern, no matter what sits in place of the `*`. To set this up:&#x20;

1. Add the Key Page URL with `*` as the wildcard for the dynamic part
2. Hit Save — Reo will start tracking all URLs that match the pattern

**Note:**&#x20;

* Wildcards mid-URL (like [`abc.com/id/*/orgpage`](http://abc.com/id/*/orgpage)) are supported
* A trailing wildcard like `abc.com/page/*` isn't needed. Reo automatically captures everything after the last `/`, so it's redundant.&#x20;

You can create a Segment to track accounts/developers/buyers who visited those Pages. The page name will appear under **Key Docs Pages filter** while creating segments.

#### **Step 3: Install Tracking Pixel on your Documentation**

Copy the Javascript code snippet and paste it in the \<header> of your site. Replace "xxxxxxxxxx" with the Client ID.

{% code overflow="wrap" %}

```javascript
<!-- Start of Reo Javascript -->
<script type="text/javascript">
  !function(){var e,t,n;e="8e5bea4a6b94770",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 -->
```

{% endcode %}

<figure><img src="/files/lVQA738ThVarCQkJcq28" alt=""><figcaption></figcaption></figure>

Here are few more ways you can install JavaScript on documentation pages:

1. Using Google Tag Manager. [Here’s the setup guide.](https://docs.reo.dev/integrations/tracking-beacon/install-javascript-for-website-documentation-through-google-tag-manager#for-documentation-tracking-via-gtm)
2. Using NPM Package. [Here’s the setup guide.](https://docs.reo.dev/integrations/tracking-beacon/install-javascript-for-website-documentation-through-google-tag-manager#for-documentation-tracking-via-gtm)

For 3rd party documentation software:

* [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)

#### **Error Scenarios**

* **Script initiation**

  Script initiation has been modified to rely on code initiation only on successful callback post download from CDN. So it will only initiate if successfully downloaded. In case the download fails, the javascript won’t get enabled but this eliminates the likelihood of an error scenario of page breaking.<br>
* **API failure on token delete**

  On deletion of **all** Reo tokens, the most recent event tracking data will likely fail, but subsequent API calls will work fine.<br>
* **Any inadvertent code failure on JavaScript**

  This should not be an issue since the code is wrapped in a try-catch block, the console may throw errors, which won’t be visible even on the console since logger would be disabled on the script.

**Cookie Management and Compliance**

To learn more about Reo.Dev's cookie usage, categorization, and best practices for implementation, refer to this [guide.](https://docs.reo.dev/integrations/tracking-beacon/reo.dev-javascript-cookies-and-consent-guide)

#### **Content Security Policy (CSP) Considerations**

If your website uses a strict Content Security Policy (CSP), you may need to update it to allow our script to load and execute correctly. Please ensure the following directives are updated to include our domains:

**Required CSP Directives**\
\
**Required CSP Directives**\
\
Copy

```
script-srchttps://static.reo.dev;connect-srchttps://api.reo.dev;
```


---

# 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.
