# Wix

> Add the Attrifast snippet to your Wix site via Settings → Custom Code — head placement, all pages — and see your first pageview, usually within a minute.

Last updated: 2026-08-15
Canonical: https://attrifast.com/docs/wix

Attrifast works on Wix the same way it works everywhere: one script tag in your site's `<head>`. Wix exposes exactly one supported place for that — **Custom Code** — and the whole setup is a paste and a publish.

<Callout>

Two requirements before you start: custom code runs only on **Wix premium plans with a connected domain** (it will not fire on a free `*.wixsite.com` site), and Attrifast event collection requires an active subscription or trial — start the 7-day free trial during onboarding (no charge today, cancel anytime).

</Callout>

## Step 1 — Get your snippet

Add your site in Attrifast (onboarding step 1, or the dashboard), then open onboarding step 2 **"Install script"**, or **Dashboard → Settings → Install script**. Copy your snippet — it looks like this, with your own tracking ID:

```html
<script defer data-tracking-id="YOUR_TRACKING_ID" src="https://api.attrifast.com/af.js"></script>
```

## Step 2 — Add it to Wix

<Steps>
<Step title="Open Custom Code">

In your Wix dashboard go to **Settings → Custom Code** (on some accounts it lives under **Settings → Tracking & Analytics → + New Tool → Custom**).

</Step>
<Step title="Paste and scope the snippet">

Click **+ Add Custom Code**, paste the snippet, and set three things:

- **Add Code to Pages:** All pages
- **Load code:** Once
- **Place Code in:** Head

Name it "Attrifast" so future-you knows what it is, then **Apply**.

</Step>
<Step title="Publish">

Custom code only ships with a publish — click **Publish** on your site. Editing alone changes nothing on the live site.

</Step>
</Steps>

## Step 3 — Verify

The **Verify installation** status in onboarding step 2 checks automatically — no button to press. Open your live Wix site in another tab and the status flips to *"First pageview received — tracking is live."*, usually within a minute. Or just check your dashboard for the visit.

<Callout>

The domain registered in Attrifast must match the domain Wix serves from — `www.` and the apex count as the same site, and subdomains are covered automatically. Serving from another domain entirely? Add it under **Dashboard → Settings → General → Allowed hostnames**.

</Callout>

## What you get

Everything in [Install the tracker](/docs/install): pageviews, channel classification (including AI engines like ChatGPT and Perplexity), engagement time, and UTM capture. For e-commerce revenue attribution on Wix Stores, connect [Stripe](/docs/stripe) if Stripe handles your payments.
