> For the complete documentation index, see [llms.txt](https://docs.sprinthub.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sprinthub.com/en/topics/settings/tracking/tracking-how-to-add-the-tracking-code-in-wix.md).

# Tracking - How to add the tracking code in Wix

<figure><img src="/files/6e03ee0a21e80aa0110d3e69cbb39930408a97d0" alt=""><figcaption></figcaption></figure>

#### 1. Access the Wix Control Panel

1. Log in to your Wix account.
2. In the left sidebar menu, click on **Settings**.

<figure><img src="/files/7e9db3444b2b9e9299121d12402f44cb297eac5a" alt=""><figcaption></figcaption></figure>

#### 2. Go to the Custom Code Section

1. Inside **Settings**, scroll down until you find **Development & Integrations**.
2. Click the option **Custom Code**.

<figure><img src="/files/313cb94c5a41dffe8d81c95ab9878d2ffaf57209" alt=""><figcaption></figcaption></figure>

#### 3. Add a New Custom Code

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

Click the **+ Custom Code** located in the upper right corner.

<figure><img src="/files/20af51725786c728099c11f105b17cb584aa8d03" alt=""><figcaption></figcaption></figure>

In the settings box that will open:

* **Paste the Sprinthub tracking code** into the script field.
* In the **First name**, enter an identifiable name, such as "Sprinthub Tracking".
* Select **All pages** to ensure tracking works across the entire site.
* Choose the option **Load the code on every visit**.
* In **Add code to**, check the option **Head**.

<figure><img src="/files/696129bd7c7d8762ea193c81e8d6890cfa27df26" alt=""><figcaption></figcaption></figure>

Click **OK** to save.

#### 4. Publish the Changes

After saving the code, return to the main Wix dashboard and click **Publish** to apply the changes to your site.

### Conclusion

Adding the Sprinthub tracking code to Wix is a simple but essential process to collect data about visitors' behavior on your site. With this information, you can optimize campaigns and improve the user experience more strategically. If you have questions, consult Sprinthub support for further assistance!


---

# 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.sprinthub.com/en/topics/settings/tracking/tracking-how-to-add-the-tracking-code-in-wix.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.
