> For the complete documentation index, see [llms.txt](https://docs.jentis.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.jentis.com/best-practices/how-to-switch-to-the-new-tracking-snippet.md).

# How to switch to the new Tracking Snippet

We've released a new version of the JENTIS Tracking Snippet. Your current snippet remains fully functional, but we recommend updating it soon to benefit from the latest improvements.

## What's new

The updated snippet now uses a compact two-line setup instead of the previous larger code block, improving compatibility with modern Content Security Policies, optimizing asynchronous loading, and reducing maintenance overhead. It is built for long-term robustness as browsers, privacy tools, and ad blockers continue to evolve, helping safeguard consistent data quality going forward.

## How to update

Open your DCP and navigate to the Containers menu

<figure><img src="https://2315305008-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy15ncufYr341K5U8q6Of%2Fuploads%2FBQiO1FAW5WXAsh8STFnT%2F2026-07-15_14-16-08.png?alt=media&amp;token=f872724d-4c36-4a10-848a-994c6a1a0082" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2315305008-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy15ncufYr341K5U8q6Of%2Fuploads%2F8WyZeGzozTeXZsjbQwY0%2F2026-07-15_14-16-08.png?alt=media&amp;token=d2a2e203-c66e-409f-8df8-e01b573252a3" alt=""><figcaption></figcaption></figure>

Click on the purple button "Update Tracking Snippet" on the container you would like to update the snippet on.

<figure><img src="https://2315305008-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy15ncufYr341K5U8q6Of%2Fuploads%2FHwQTk5Jhk6PeMnr1fHjg%2F2026-07-15_14-18-05.png?alt=media&amp;token=63b2aa82-725b-4bd9-ad31-de2ea8c0c946" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Preview the updated snippet before publishing. Verify that your existing tracking still works as expected.
{% endhint %}

The next step is to publish a new version on the container.

<figure><img src="https://2315305008-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy15ncufYr341K5U8q6Of%2Fuploads%2FI3VpJQmqy69dHqMfXOiR%2FScreenshot%202026-07-15%20at%2012.45.13.png?alt=media&amp;token=69e0a2a7-36c4-4bb0-97c6-595516648f53" alt=""><figcaption></figcaption></figure>

After publishing, you will see your new container-specific tracking snippet

<figure><img src="https://2315305008-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy15ncufYr341K5U8q6Of%2Fuploads%2F0cOJhCLiqhfdYJw1ynFS%2FScreenshot%202026-07-15%20at%2012.45.30.png?alt=media&amp;token=487d0512-bc64-4651-84b3-a2a964a4cd90" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
You might need to refresh the page if the publishing of the previous step is not recognized automatically :wink:.
{% endhint %}

You can decide if you want to add an automatic pageview submit call to the snippet by ticking the "Add pageview to snippet" checkbox.

After implementing the new snippet, you can click the "Verify Configuration" button to make sure the snippet was implemented correctly.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.jentis.com/best-practices/how-to-switch-to-the-new-tracking-snippet.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
