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

# Wix Analytics Integration

> Add tinyanalytics to a Wix site by pasting the tracking snippet into Settings → Custom Code, applied to every page's head. Requires a Wix Premium plan.

To add tinyanalytics to a **Wix** site, paste the tracking snippet into **Custom Code** and apply it to every page's `<head>`. Wix loads it site-wide, including across its client-side page transitions.

<Note>
  Custom Code requires a **Wix Premium (paid) plan**. On the free plan, Wix doesn't allow adding custom code, so this method isn't available.
</Note>

## Before you start

* A tinyanalytics site. If you don't have one yet, follow the [Quickstart](/docs/tinyanalytics-quickstart).
* Your snippet from **Settings → Tracking** in your dashboard.
* A Wix **Premium plan**.

## Add the snippet to Custom Code

<Steps>
  <Step title="Open Custom Code">
    In your Wix site dashboard, go to **Settings → Custom Code** (under Advanced).
  </Step>

  <Step title="Add a new code snippet">
    Click **+ Add Custom Code** and paste your tinyanalytics snippet:

    ```html theme={null}
    <script defer src="https://dash.tinyanalytics.io/script.js"
      data-site-id="YOUR_SITE_ID"></script>
    ```
  </Step>

  <Step title="Apply it site-wide">
    Set **Add Code to Pages** to **All pages**, choose **Load code once**, and place the code in the **Head**. Give it a name and click **Apply**.
  </Step>
</Steps>

<Tip>
  Replace `YOUR_SITE_ID` with your real site ID. Wix moves between pages on the client, and tinyanalytics records those route changes automatically ([SPA tracking](/docs/configure-tinyanalytics-tracking-script#track-single-page-apps) is on by default), so one snippet covers your whole site.
</Tip>

## Verify

Open your Wix site in a browser, then check **Realtime** in your dashboard for your visit. See [Verify your setup](/docs/verify-tinyanalytics-installation) for the full check.

<Check>
  Your install is working when your own visit appears in **Realtime** in your dashboard.
</Check>

## Related

<Columns cols={2}>
  <Card title="Install on any platform" icon="puzzle-piece" href="/docs/integrations/install-website-analytics">
    The universal method and other platforms.
  </Card>

  <Card title="Configure the tracking script" icon="sliders" href="/docs/configure-tinyanalytics-tracking-script">
    Every `data-*` option you can set.
  </Card>

  <Card title="Track custom events" icon="hand-pointer" href="/docs/custom-event-tracking">
    Measure signups and clicks.
  </Card>

  <Card title="Verify your setup" icon="circle-check" href="/docs/verify-tinyanalytics-installation">
    Confirm tracking works.
  </Card>
</Columns>


## Related topics

- [Angular Analytics Integration](/docs/integrations/angular-analytics.md)
- [Gatsby Analytics Integration](/docs/integrations/gatsby-analytics.md)
- [Astro Analytics Integration](/docs/integrations/astro-analytics.md)
