Skip to content

Install Vercel Web Analytics integration#13

Draft
vercel[bot] wants to merge 1 commit into
masterfrom
vercel/install-vercel-web-analytics-i-6rvtpu
Draft

Install Vercel Web Analytics integration#13
vercel[bot] wants to merge 1 commit into
masterfrom
vercel/install-vercel-web-analytics-i-6rvtpu

Conversation

@vercel

@vercel vercel Bot commented Jun 6, 2026

Copy link
Copy Markdown

Implemented Vercel Web Analytics for this static HTML website.

Changes Made

Files Modified:

  1. index.html - Added Vercel Analytics script to main page
  2. about.html - Added Vercel Analytics script to about page
  3. contact.html - Added Vercel Analytics script to contact page
  4. portfolio.html - Added Vercel Analytics script to portfolio page
  5. scripts/template.html - Added Vercel Analytics script to blog template

Implementation Details:

Following the official Vercel Analytics documentation (fetched from https://vercel.com/docs/analytics/quickstart), I added the Web Analytics tracking code to all HTML pages in the project.

For static HTML sites, Vercel Analytics requires adding two script tags to the <head> section of each page:

  1. An inline script that initializes the window.va function
  2. A deferred script that loads from /_vercel/insights/script.js

The analytics script was added before the closing </head> tag in all user-facing HTML files.

How It Works:

Once deployed to Vercel:

  • Vercel will automatically inject the analytics collection script at the /_vercel/insights/* route
  • The script will begin tracking page views and user interactions
  • Analytics data will be available in the Vercel dashboard under the Analytics section

Next Steps:

To activate analytics:

  1. Deploy these changes to Vercel using vercel deploy
  2. Enable Web Analytics in your Vercel dashboard (Analytics → Enable button)
  3. After deployment, analytics will automatically start collecting data
  4. View analytics data in the Vercel project dashboard after a few visitor sessions

Note:

Since this is a static HTML website (not using a JavaScript framework), no package installation was required. The analytics functionality is provided entirely through the Vercel platform infrastructure.


View Project · Web Analytics

Created by Mat Varughese (varughese) with Vercel Agent

Implemented Vercel Web Analytics for this static HTML website.

## Changes Made

### Files Modified:
1. **index.html** - Added Vercel Analytics script to main page
2. **about.html** - Added Vercel Analytics script to about page
3. **contact.html** - Added Vercel Analytics script to contact page
4. **portfolio.html** - Added Vercel Analytics script to portfolio page
5. **scripts/template.html** - Added Vercel Analytics script to blog template

### Implementation Details:

Following the official Vercel Analytics documentation (fetched from https://vercel.com/docs/analytics/quickstart), I added the Web Analytics tracking code to all HTML pages in the project.

For static HTML sites, Vercel Analytics requires adding two script tags to the `<head>` section of each page:
1. An inline script that initializes the `window.va` function
2. A deferred script that loads from `/_vercel/insights/script.js`

The analytics script was added before the closing `</head>` tag in all user-facing HTML files.

### How It Works:

Once deployed to Vercel:
- Vercel will automatically inject the analytics collection script at the `/_vercel/insights/*` route
- The script will begin tracking page views and user interactions
- Analytics data will be available in the Vercel dashboard under the Analytics section

### Next Steps:

To activate analytics:
1. Deploy these changes to Vercel using `vercel deploy`
2. Enable Web Analytics in your Vercel dashboard (Analytics → Enable button)
3. After deployment, analytics will automatically start collecting data
4. View analytics data in the Vercel project dashboard after a few visitor sessions

### Note:

Since this is a static HTML website (not using a JavaScript framework), no package installation was required. The analytics functionality is provided entirely through the Vercel platform infrastructure.

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

vercel Bot commented Jun 6, 2026

Copy link
Copy Markdown
Author

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

Project Deployment Actions Updated (UTC)
varughese-github-io Building Building Preview Jun 6, 2026 4:46pm

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