Skip to content

Install and Configure Vercel Web Analytics#2

Open
vercel[bot] wants to merge 1 commit into
mainfrom
vercel/install-and-configure-vercel-w-w4rdz1
Open

Install and Configure Vercel Web Analytics#2
vercel[bot] wants to merge 1 commit into
mainfrom
vercel/install-and-configure-vercel-w-w4rdz1

Conversation

@vercel

@vercel vercel Bot commented Jun 3, 2026

Copy link
Copy Markdown

Implemented Vercel Web Analytics for Jekyll Static Site

Summary

Successfully integrated Vercel Web Analytics into the Jekyll project using the vanilla JavaScript script tag approach, as recommended by the official Vercel documentation.

Changes Made

Modified Files

  • _layouts/default.html - Added Vercel Analytics script tag in the section

Implementation Details

Since this is a Jekyll static site that generates HTML, I used the vanilla JavaScript integration method documented at https://vercel.com/docs/analytics/package.

The integration involved:

  1. Fetched the latest Vercel Analytics documentation from the official quickstart guide
  2. Identified that Jekyll is a static site generator requiring the vanilla JavaScript approach
  3. Added the following script tag to the default layout's section:
    <!-- Vercel Web Analytics -->
    <script defer src="https://cdn.vercel-insights.com/v1/script.js"></script>

Technical Decisions

Why vanilla JavaScript approach:

  • Jekyll is a static site generator that outputs plain HTML
  • The project has no package.json or JavaScript build pipeline
  • The vanilla JavaScript script tag is the recommended approach for static HTML sites
  • The script is loaded with the defer attribute for optimal performance

Placement:

  • Added after the Google Fonts preconnect links and before the inline styles
  • Placed in the section as per documentation
  • Includes a clear HTML comment for maintainability

Next Steps Required

To activate Vercel Analytics:

  1. Deploy the site to Vercel
  2. Navigate to the project's Analytics section in the Vercel dashboard
  3. Click the "Enable" button to activate analytics
  4. After deployment, verify the integration by checking browser Network tab for successful /_vercel/insights/* requests

Framework Notes

This is a Jekyll static site with:

  • Ruby-based build system (Gemfile with Jekyll and Webrick)
  • No JavaScript package manager or build pipeline
  • Single layout file (_layouts/default.html) that serves all pages
  • Vercel Analytics will automatically track pageviews across all pages that use this layout

The implementation preserves the existing site structure and adds only the minimal required code for analytics tracking.


View Project · Web Analytics

Created by Sol Nicol (solnicol) with Vercel Agent

Implemented Vercel Web Analytics for Jekyll Static Site

## Summary
Successfully integrated Vercel Web Analytics into the Jekyll project using the vanilla JavaScript script tag approach, as recommended by the official Vercel documentation.

## Changes Made

### Modified Files
- `_layouts/default.html` - Added Vercel Analytics script tag in the <head> section

## Implementation Details

Since this is a Jekyll static site that generates HTML, I used the vanilla JavaScript integration method documented at https://vercel.com/docs/analytics/package.

The integration involved:
1. Fetched the latest Vercel Analytics documentation from the official quickstart guide
2. Identified that Jekyll is a static site generator requiring the vanilla JavaScript approach
3. Added the following script tag to the default layout's <head> section:
   ```html
   <!-- Vercel Web Analytics -->
   <script defer src="https://cdn.vercel-insights.com/v1/script.js"></script>
   ```

## Technical Decisions

**Why vanilla JavaScript approach:**
- Jekyll is a static site generator that outputs plain HTML
- The project has no package.json or JavaScript build pipeline
- The vanilla JavaScript script tag is the recommended approach for static HTML sites
- The script is loaded with the `defer` attribute for optimal performance

**Placement:**
- Added after the Google Fonts preconnect links and before the inline styles
- Placed in the <head> section as per documentation
- Includes a clear HTML comment for maintainability

## Next Steps Required

To activate Vercel Analytics:
1. Deploy the site to Vercel
2. Navigate to the project's Analytics section in the Vercel dashboard
3. Click the "Enable" button to activate analytics
4. After deployment, verify the integration by checking browser Network tab for successful `/_vercel/insights/*` requests

## Framework Notes

This is a Jekyll static site with:
- Ruby-based build system (Gemfile with Jekyll and Webrick)
- No JavaScript package manager or build pipeline
- Single layout file (_layouts/default.html) that serves all pages
- Vercel Analytics will automatically track pageviews across all pages that use this layout

The implementation preserves the existing site structure and adds only the minimal required code for analytics tracking.

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

vercel Bot commented Jun 3, 2026

Copy link
Copy Markdown
Author

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

Project Deployment Actions Updated (UTC)
solnicol-com Ready Ready Preview, Comment Jun 3, 2026 7:44pm

@solnicol solnicol marked this pull request as ready for review July 7, 2026 08:56
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