> For the complete documentation index, see [llms.txt](https://docs.uxwizz.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uxwizz.com/guides/troubleshooting/tracking/the-a-b-test-js-file-is-missing.md).

# The A/B test JS file is missing

### Problem

After the initial installation you might notice that, if you checked the A/B testing feature when including the tracking script, the domain.ab.js file is missing, returning "404 Not Found".

### Cause

This happens because **the AB** **testing file is only generated once at least one AB test has been created** and published.

### Solution

#### A. If you are not using AB tests, include the tracking snippet without this feature

Go to **Domains->Wrench icon (for the domain you want to change the tracking snippet) -> Include the tracking pixel**.

Disable the A/B tests feature and copy the tracking code. Update the tracking snippet on your domain.

![Removing the A/B test code from the tracking snippet](/files/EZd503VwNkTtTVgHhcOM)

**B. Create and publish an empty test**

If you do plan to use A/B tests but don't want to create one yet, you can still generate the A/B test file by going to **A/B tests -> Add new test (bottom right) -> Publish Tests**

![Creating an empty A/B test to generate the missing ab.js file](/files/BTKjAryzK9uIbkMPuwDm)


---

# 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.uxwizz.com/guides/troubleshooting/tracking/the-a-b-test-js-file-is-missing.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.
