# Add Privatus Analytics to Wix

> Add privacy-friendly analytics to a Wix site as custom code in the head, count page navigations once and set the code type to Essential for your consent banner.

Custom code requires a premium Wix plan with a connected domain.

1. In the dashboard go to **Settings → Custom code → Add custom code**.
2. Paste the snippet:

   ```html
   <script defer src="https://privatusanalytics.com/js/pa.js" data-site="pa_YOURSITEID"></script>
   ```

3. Name it "Privatus Analytics", choose **All pages**, **Load code once**,
   and place it in the **Head**.
4. Apply.

Wix sites navigate between pages without full reloads. The tracker follows
those navigations with its default `data-spa="auto"`, so each page counts
once.

Under **Code type**, choose **Essential** if your Wix consent banner is on:
Privatus Analytics sets no cookies and doesn't need to wait for consent. Confirm this
with your own legal assessment.
