Astro Clarity is a lightweight wrapper that seamlessly integrates Clarity analytics with Astro, making it effortless to track user interactions and performance metrics on your Astro-powered websites.
npm install @kbyte-tech/astro-clarity
yarn add @kbyte-tech/astro-clarity
pnpm add @kbyte-tech/astro-clarity
// file: astro.config.mjs
import clarity from '@kbyte-tech/astro-clarity';
export default defineConfig({
integrations: [
// ... other integrations
// Add the Clarity integration
clarity({
enabled: true,
projectId: 'YOUR_PROJECT_ID',
}),
],
});