Source: https://datafa.st/docs/wix
Markdown source: https://datafa.st/docs/wix.md
Description: How to add DataFast to your Wix site

# Add DataFast to your Wix site

Follow these steps to integrate DataFast analytics into your Wix site.

## Add tracking script using Custom Code

Wix allows you to add custom code through the Tracking & Analytics settings.

1. Open your Wix Editor
2. Go to **Settings** > **Tracking & Analytics**
3. Click **+ New Tool**
4. Select **Custom** from the dropdown
5. In the code box, paste your DataFast tracking script:

    ```html
    <script
      defer
      data-website-id="dfid_******"
      data-domain="your_domain.com"
      src="https://datafa.st/js/script.js"
    ></script>
    ```

    > Replace `dfid_******` with your actual Website ID from DataFast.
    > Replace `your_domain.com` with your website's root domain.

6. Set the following options:
   - **Add Code to Pages**: Select "All pages"
   - **Place Code in**: Select "Head"
7. Click **Apply**

## Alternative: Using HTML embed

You can also add the script using an HTML element:

1. In the Wix Editor, click **Add** (+)
2. Go to **Embed** > **HTML iframe**
3. Paste the DataFast tracking script
4. Position the HTML element in your page header

## Verify installation

After implementing:
- Publish your Wix site
- Visit your live website
- Check your [DataFast dashboard](/dashboard) for incoming data
- It might take a few minutes for the first pageviews to appear

> For advanced configuration options like localhost tracking, custom API endpoints, or cross-domain setup, see the [script configuration reference](/docs/script-configuration).

> Note: Custom code features require a Wix Premium plan. The tracking script will not work on the free plan.
