> ## Documentation Index
> Fetch the complete documentation index at: https://help.trfyx.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Wix

> Install Trfyx analytics on a Wix site.

# Add Trfyx to your Wix site

Wix lets you add custom tracking code through its Tracking & Analytics settings.

## Add the tracking script

1. Open your Wix dashboard or editor.
2. Go to **Settings → Tracking & Analytics**.
3. Choose **Add New Tool** and select the custom-code option.
4. Paste the Trfyx tracking script.
5. Configure it to load on **all pages** and place it in the **head**.
6. Save the tool and publish your site.

```html theme={null}
<script
  defer
  data-website-id="YOUR_TRFYX_PROJECT_ID"
  data-domain="yourdomain.com"
  src="https://app.trfyx.com/script.js"
></script>
```

<Warning>
  Replace `YOUR_TRFYX_PROJECT_ID` with the Website ID from your Trfyx project and `yourdomain.com` with the domain you want to track. Keep the script URL as `https://app.trfyx.com/script.js`. Do not copy another project's Website ID.
</Warning>

## Verify installation

Publish the site, open the live domain, and browse several pages. Then check your Trfyx dashboard for incoming traffic.

## Troubleshooting

If data does not appear, verify that the custom code is enabled on all pages, the code is placed in the head, the site has been published, and the Trfyx Website ID and domain are correct.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.