Skip to content

Install Vercel Web Analytics#1

Draft
vercel[bot] wants to merge 1 commit intomainfrom
vercel/install-vercel-web-analytics-gaq78o
Draft

Install Vercel Web Analytics#1
vercel[bot] wants to merge 1 commit intomainfrom
vercel/install-vercel-web-analytics-gaq78o

Conversation

@vercel
Copy link
Copy Markdown

@vercel vercel bot commented Mar 18, 2026

Vercel Web Analytics Implementation

Successfully implemented Vercel Web Analytics for this static HTML website.

What Was Done

  1. Explored the codebase and identified this as a static HTML site with 7 pages:

    • index.html (homepage)
    • contact.html
    • deputy.html
    • deputy-mediation.html
    • dispute-individual.html
    • guidance-individual.html
    • mediation-individual.html
  2. Fetched latest documentation from https://vercel.com/docs/analytics/quickstart to ensure up-to-date implementation instructions.

  3. Added Vercel Web Analytics scripts to all 7 HTML files in the <head> section:

    • Initialization script that sets up the window.va function
    • Deferred script tag that loads /_vercel/insights/script.js

Implementation Details

For each HTML file, I added the following code immediately after the viewport meta tag and before other external resources:

<script>
  window.va = window.va || function () { (window.vaq = window.vaq || []).push(arguments); };
</script>
<script defer src="/_vercel/insights/script.js"></script>

This follows the official Vercel documentation for static HTML sites. The /_vercel/insights/script.js path is automatically served by Vercel when the site is deployed and Web Analytics is enabled in the Vercel dashboard.

Next Steps

To complete the setup:

  1. Enable Web Analytics in Vercel Dashboard:

    • Go to your project in the Vercel dashboard
    • Navigate to the Analytics tab
    • Click "Enable" to activate Web Analytics
  2. Deploy the site:

    • The changes will take effect once deployed to Vercel
    • The analytics script will automatically connect to Vercel's analytics service
  3. Verify:

    • After deployment, visit the site and check the browser's Network tab
    • Look for requests to /_vercel/insights/view to confirm analytics is working
    • Data will appear in the Vercel dashboard after a few days of visitor activity

Files Modified

  • contact.html
  • deputy-mediation.html
  • deputy.html
  • dispute-individual.html
  • guidance-individual.html
  • index.html
  • mediation-individual.html

All changes preserve the existing code structure and only add the necessary analytics tracking scripts.


View Project · Web Analytics

Created by ndr-dh with Vercel Agent

## Vercel Web Analytics Implementation

Successfully implemented Vercel Web Analytics for this static HTML website.

### What Was Done

1. **Explored the codebase** and identified this as a static HTML site with 7 pages:
   - index.html (homepage)
   - contact.html
   - deputy.html
   - deputy-mediation.html
   - dispute-individual.html
   - guidance-individual.html
   - mediation-individual.html

2. **Fetched latest documentation** from https://vercel.com/docs/analytics/quickstart to ensure up-to-date implementation instructions.

3. **Added Vercel Web Analytics scripts** to all 7 HTML files in the `<head>` section:
   - Initialization script that sets up the `window.va` function
   - Deferred script tag that loads `/_vercel/insights/script.js`

### Implementation Details

For each HTML file, I added the following code immediately after the viewport meta tag and before other external resources:

```html
<script>
  window.va = window.va || function () { (window.vaq = window.vaq || []).push(arguments); };
</script>
<script defer src="/_vercel/insights/script.js"></script>
```

This follows the official Vercel documentation for static HTML sites. The `/_vercel/insights/script.js` path is automatically served by Vercel when the site is deployed and Web Analytics is enabled in the Vercel dashboard.

### Next Steps

To complete the setup:

1. **Enable Web Analytics in Vercel Dashboard**:
   - Go to your project in the Vercel dashboard
   - Navigate to the Analytics tab
   - Click "Enable" to activate Web Analytics

2. **Deploy the site**:
   - The changes will take effect once deployed to Vercel
   - The analytics script will automatically connect to Vercel's analytics service

3. **Verify**:
   - After deployment, visit the site and check the browser's Network tab
   - Look for requests to `/_vercel/insights/view` to confirm analytics is working
   - Data will appear in the Vercel dashboard after a few days of visitor activity

### Files Modified

- contact.html
- deputy-mediation.html
- deputy.html
- dispute-individual.html
- guidance-individual.html
- index.html
- mediation-individual.html

All changes preserve the existing code structure and only add the necessary analytics tracking scripts.

Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
@vercel
Copy link
Copy Markdown
Author

vercel bot commented Mar 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
d-hsite Ready Ready Preview, Comment Mar 18, 2026 6:09pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants