#Vercel adapter not connecting to speedInsights and webAnalytics

4 messages · Page 1 of 1 (latest)

thorny ice
#

Vercels not recording anything and giving "get started" instructions. The deployment went fine and I used github integration. I added the following in my astro.config.mjs:

        adapter: vercel({
        webAnalytics: {
            enabled: true,
        },
        speedInsights: {
            enabled: true,
        },
    }),
safe violet
#

Gut check - did you install the respective packages via npm or yarn?

For Vercel Analytics you also need to import it into the components that need it for custom events e.g.:

import { track } from '@vercel/analytics'

thorny ice
#

@safe violet Thanks for your reply! I was under the impression that we dont need to install the separate packages if we have the adapter? Analytics seems to work fine now but I'm still not getting anything in Speed Insights. I get the following error in the console:

page.qWueip3o.js:1 [Speed Insights] VERCEL_ANALYTICS_ID not found ee @ page.qWueip3o.js:1
safe violet