Next.js Discord

Discord Forum
","dateCreated":"2024-01-22T11:44:17.000Z","answerCount":0,"author":{"@type":"Person","name":"Cinnamon"}}}

Vercel Web analytics

Unanswered
Cinnamon posted this in #help-forum
Open in Discord
CinnamonOP
Hey all, I am trying to get Vercel's Analytics tool to pick up my website.
I am using NPM; I have TailwindCSS, Browsersync and Vercel/Analytics installed.
This is a static site, hosted on GH and deployed on Vercel.
This is my current javascript file:
const analytics = require('../node_modules/@vercel/analytics');
analytics({
  projectId: 'prj_bPtwxAybd8AjsZxkGG4nvPruT28x',
});


This is how I have imported it in my HTML file:
<script type="module" src="index.js"></script>

0 Replies