# 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](https://2006615411-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ltuu0c63_YY4iXfi5vJ%2Fuploads%2FwFnnSBHVw76EQkpq8isB%2Fimage.png?alt=media\&token=6e1dc555-9814-4491-a849-6567283feb20)

**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](https://2006615411-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ltuu0c63_YY4iXfi5vJ%2Fuploads%2FEea3Eqd8hdxkXO5ZJs3g%2Fimage.png?alt=media\&token=6273b8e1-d495-487a-bf5b-81da877c9eaa)
