# Wix

## Add Humblytics Analytics to Wix

### 1 · Sign up (or log in)

Visit humblytics.com → Start Free Trial. Finish signup—or log in to your existing workspace.

### 2 · Add your website in Humblytics

In the sidebar, click **Add Website**.

* **Domain** – enter `your-domain.com` (omit `https://` and `www`)
* **Site Name** – internal label (e.g. `Marketing-Prod`)

Copy the snippet from **Install Tracking Code**:

html

```html
<!-- Start Humblytics Tracking Code -->
<script async src="https://app.humblytics.com/hmbl.min.js?id=YOUR_ID_HERE"></script>
<!-- End Humblytics Tracking Code -->
```

Keep this tab open—we'll return and click **Verify Website** once the tag is live.

### 3 · Add the script to Wix

**Note**: Custom code requires a Wix **Premium plan**. If you're on a free plan, you'll need to upgrade.

#### Option 1: Site-wide tracking (recommended)

**Best for:** Tracking all pages on your site

1. Log in to your **Wix Dashboard**
2. Select your site and click **Settings** in the left sidebar
3. Scroll down and click **Custom Code** under Advanced Settings
4. Click **+ Add Custom Code** at the top right
5. In the dialog that opens:
   * **Paste your Humblytics script** in the code box
   * **Name**: Enter `Humblytics Analytics`
   * **Add Code to Pages**: Select **All pages**
   * **Place Code in**: Choose **Head**
   * **Load code once** or **Load code on each new page**: Choose **Load code on each new page**
6. Click **Apply**

#### Option 2: Single page tracking

**Best for:** Tracking specific landing pages only

1. Open the **Wix Editor**
2. Click **Pages & Menu** in the left sidebar
3. Hover over the page you want to track and click the **⋮** (three dots)
4. Select **Settings**
5. Go to **Advanced Settings → Custom Code**
6. Click **+ Add Custom Code**
7. Paste your Humblytics script:
   * **Place Code in**: Choose **Head**
   * **Load**: Choose **Load code on each new page**
8. Click **Apply**

**Note**: Replace `YOUR_ID_HERE` with your actual project ID from Humblytics.

### 4 · Publish your site

⚠️ **Important**: Adding custom code doesn't make it live automatically. You must publish your site.

1. Click **Publish** in the top right of the editor or dashboard
2. Wait for Wix to finish publishing (usually 10-30 seconds)
3. Confirm your site is live by visiting your domain

### 5 · Verify installation

1. Return to Humblytics and click **Verify Website**
2. Open your live Wix site in a private/incognito window and refresh once
3. Within \~30 seconds you should see a green **Verified** badge and live visitor count

**If verification fails, check:**

**Wix-specific issues:**

* You have a **Premium plan** (custom code isn't available on free plans)
* You clicked **Publish** after adding the code
* Script is set to **Head** placement, not Body or Footer
* You selected **Load code on each new page** (not "once")
* You're testing your live domain, not the Wix preview URL

**General issues:**

* Script ID matches your project in Humblytics
* Open Developer Tools (F12) → **Network** tab, refresh page, and search for `hmbl.min.js` to confirm it loads
* View page source (right-click → View Page Source) and search for "humblytics"
* No ad-blockers or browser extensions are blocking the script

**Can't find Custom Code?** If you don't see **Settings → Custom Code**, you're likely on a free plan. You'll need to upgrade to a Premium plan to add custom code.

### 6 · Explore & optimize

* **Dashboard** – view traffic, top pages, and referrers
* **Heatmaps** – auto-generated for clicks and scroll depth
* **Experiments** – run A/B tests directly from Humblytics (Experiments → New Test)
