> For the complete documentation index, see [llms.txt](https://docs.foxmetrics.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.foxmetrics.com/getting-started/setting-up-an-account/the-tracking-tool.md).

# The Tracking Code

The tracking code is used to install FoxMetrics on a website or web app. When you click on the tracking option icon for each application, the tracking code for that application pops up.&#x20;

![Tracking code (circled red)](/files/-Mfn611sZM_DAi8degB8)

Typically, you won’t be able to access a [new application](/getting-started/setting-up-an-account/managing-applications.md#how-to-create-a-new-application) except there’s data flowing into it. And this requires installing/ implementing Foxmetrics.

![](/files/-Md-6nuYa4FfJ0UOu2g6)

To install Foxmetrics on your website using the tracking code, copy and paste the tracking code into the`<head>`tag of your site. The [Installation Guide](/getting-started/configure-foxmetrics.md) provides step-by-step instructions on how to **integrate FoxMetrics** on various platforms using Google Tag Manager.

Once you’ve [configured Foxmetrics](/getting-started/configure-foxmetrics.md) on your site, wait for 1 hour before trying to access the application.

{% hint style="info" %}
If there’s enough traffic coming to your site, it should start tracking after an hour.

However, if your site is new and you don’t have a ton of traffic, try clicking around the website to generate enough events to move you past the [application restriction](/getting-started/setting-up-an-account/accessibility-limitation.md).

{% endhint %}

![Data tracking warning.](/files/-Md-71sglgCnnFTfuapo)

{% hint style="success" %}
Once FoxMetrics is implemented, the tracking code warning (above) would change from **yellow** to **green**.
{% endhint %}

![](/files/-Md-71siRVvfgxf9oz-R)


---

# 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.foxmetrics.com/getting-started/setting-up-an-account/the-tracking-tool.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.
