From 806c477221793fac0b2920d0e84caa9002c7508b Mon Sep 17 00:00:00 2001 From: Vercel Date: Fri, 10 Jul 2026 12:44:13 +0000 Subject: [PATCH] Install Vercel Web Analytics MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Vercel Web Analytics Installation Report ## Summary Successfully installed and configured Vercel Web Analytics for the Fair Code project following the official Vercel documentation (https://vercel.com/docs/analytics/quickstart). ## Project Details - **Project Type**: Static HTML website (Python package with static web frontend) - **Framework**: Static HTML (no JavaScript framework) - **Installation Method**: Direct script injection (static HTML approach) ## Implementation ### Files Modified 1. **index.html** - Main landing page (3,045 lines) 2. **explainer.html** - Explainer page (109 lines) 3. **profiler.html** - Dataset profiler page (190 lines) ### Changes Made Added Vercel Web Analytics scripts to all three HTML files, placed in the `` section just before the closing `` tag: ```html ``` ### Implementation Details - **Placement**: Scripts added at the end of the `` section in all HTML files - **Method**: Used the static HTML integration method as per Vercel documentation - **Script Path**: `/_vercel/insights/script.js` (Vercel-managed path) - **Initialization**: Uses the window.va queue pattern for asynchronous loading ## Verification - ✓ All HTML files validated for correct syntax - ✓ Vercel Analytics scripts properly inserted in all three HTML files - ✓ Scripts placed in optimal location (before closing `` tag) - ✓ No syntax errors introduced ## Next Steps After deployment to Vercel: 1. Enable Web Analytics in the Vercel dashboard (Analytics section) 2. Deploy the updated HTML files 3. Verify tracking by checking browser Network tab for requests to `/_vercel/insights/view` 4. View analytics data in Vercel dashboard after deployment ## Notes - No package.json or npm dependencies required for static HTML projects - The analytics script is served by Vercel after enabling analytics in the dashboard - Data collection begins automatically after deployment with analytics enabled - All three HTML pages will now track page views and analytics data Co-authored-by: Vercel --- explainer.html | 4 ++++ index.html | 4 ++++ profiler.html | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/explainer.html b/explainer.html index a0bdee0..49cc996 100644 --- a/explainer.html +++ b/explainer.html @@ -59,6 +59,10 @@ ::selection { background: var(--accent); color: var(--bg); } :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; } + +
diff --git a/index.html b/index.html index e1e9b1d..c7df5be 100644 --- a/index.html +++ b/index.html @@ -1396,6 +1396,10 @@ + + diff --git a/profiler.html b/profiler.html index f1f5403..1a2cd8d 100644 --- a/profiler.html +++ b/profiler.html @@ -81,6 +81,10 @@ } + +