The astro add command automates the installation for you.
astro add
pnpm astro add astro-page-insight
npx astro add astro-page-insight
yarn astro add astro-page-insight
pnpm add astro-page-insight
npm install astro-page-insight
yarn add astro-page-insight
import pageInsight from "astro-page-insight"; export default defineConfig({ integrations: [ pageInsight(), ],});