I’ve installed both analytics and speedinsights packages, added in the necessary codes in my layout.js, but nothing is working (even with Cursor helping out). The page deployed without problem, just no analytics or insights.
I did the same thing for my other page .tsx and analytics work just fine.
layout.js
import "./Styles.css";
import { Analytics } from '@vercel/analytics/react';
<html lang="en">
<body>
{children}
<Analytics />
</body>
</html>
package.json
"@vercel/analytics": "^1.4.1",
Please help thanks!