> For the complete documentation index, see [llms.txt](https://doc.customfit.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.customfit.ai/master/installing-customfit-code-snippet.md).

# Installing CustomFit Code Snippet

To provide a personalized experience to your website visitors, your initial step is to install the [CustomFit.ai](http://customfit.ai/) code snippet on your website. This installation is a one-time setup and doesn't require modification every time you run a new experience. To successfully complete this installation, you'll need access to your website's source HTML code.

{% hint style="warning" %}
[CustomFit.ai](http://customfit.ai/) does not recommend installing the code snippet through tag managers (such as Google Tag Manager) because that will cause the flicker (visitor can see the default content being replaced by the personalized content).
{% endhint %}

### To add the code snippet

* From the dashboard sidebar, click on '**Settings**' and then click on the '**CustomFit Setup**' option.

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

* Click '**Copy**' to copy the code snippet.

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

* Paste the copied code snippet into the **\<head>** tag of your website to personalize and track visitors.
* In the URL field, type the web page's URL where you placed the code snippet, then click Verify to confirm the installation. You will see the success message if the installation was successful.

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


---

# 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://doc.customfit.ai/master/installing-customfit-code-snippet.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.
