From 197120e7bbc384fcdc11c8058ad181302eaf98a8 Mon Sep 17 00:00:00 2001 From: Vercel Date: Sun, 31 May 2026 01:01:45 +0000 Subject: [PATCH] Install Vercel Web Analytics Integration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Vercel Web Analytics Implementation ### Summary Successfully installed and configured Vercel Web Analytics for this vanilla HTML project following the latest official Vercel documentation. ### Framework Detection Analyzed the project structure and identified: - **Project Type**: Vanilla HTML (static website) - **No package.json or framework detected** - **Single page application**: index.html ### Implementation Details #### Changes Made **Modified:** - `index.html` - Added Vercel Web Analytics scripts before the closing `` tag #### Code Added Following the Vercel documentation for vanilla HTML projects, I added two script tags: 1. **Analytics initialization script**: Initializes the `window.va` function that queues analytics events 2. **Analytics tracking script**: Deferred script that loads from `/_vercel/insights/script.js` The implementation follows the exact pattern from the official Vercel Analytics quickstart guide for vanilla HTML projects. ### Implementation Location The analytics scripts were inserted immediately before the closing `` tag at the end of index.html (after all existing JavaScript), which ensures: - All page content is loaded before analytics initialization - No interference with existing JavaScript functionality - Proper page view tracking ### Next Steps 1. Deploy the site to Vercel 2. Enable Analytics in the Vercel Dashboard for this project (navigate to the Analytics section and click Enable) 3. After deployment, verify analytics are working by: - Visiting the deployed site - Opening browser DevTools → Network tab - Looking for a fetch/XHR request to a path containing `/view` ### Notes - No package manager installation was needed as this is a vanilla HTML project - No build process required - The `/_vercel/insights/script.js` path is automatically served by Vercel when Analytics is enabled in the dashboard - The analytics will only function when deployed to Vercel (not in local development) Co-authored-by: Vercel --- index.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.html b/index.html index 7e50234..54fea9f 100644 --- a/index.html +++ b/index.html @@ -1357,5 +1357,11 @@

Contato

try { var saved = localStorage.getItem("lang"); if (saved === "en") setLang("en"); } catch(e) {} })(); + + + +