Ask your AI to get started with Web Analytics and Speed Insights
Setting up Web Analytics and Speed Insights is now easy to hand to your AI in one shot. While a project has no data from the last 30 days, each page shows how to set it up, and from Ask an AI assistant you can copy a prompt that asks your assistant to change your project's setup. Choose Open in ChatGPT or Open in Claude to start a conversation with the prompt filled in.
The prompt carries nothing about you or your project. An assistant in your editor reads the project itself; in ChatGPT or Claude on the web, share the files it asks for.
To do it by hand, the steps are on the same page, with the command and the file to copy: install
@vercel/analytics or @vercel/speed-insights, render the component once in your root layout (in
pages/_app.tsx with the Pages Router), and deploy. There is no environment variable or option to
set.
Is your project coming from Vercel? An app that already renders <Analytics /> or
<SpeedInsights /> needs no change: deploy it to Arkor, and its numbers appear. Only what points the
components elsewhere has to go: options such as scriptSrc, endpoint or dsn, if you pass any,
and NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH and NEXT_PUBLIC_VERCEL_OBSERVABILITY_CLIENT_CONFIG,
if you copy its environment variables over.
See Web Analytics and Speed Insights.