Setting Up Microsoft Clarity
Follow these steps to integrate Microsoft Clarity.
Step 1: Create a Microsoft Clarity Account
- Go to the Microsoft Clarity website.
- Sign in with your Microsoft account and create a new project for your website.
- Add your website details, and you’ll receive a Clarity Project ID.
Step 2: Add the Project ID to .env.local
- In your project’s
.env.local
file, add the following environment variable:NEXT_PUBLIC_MICROSOFT_CLARITY=YOUR_PROJECT_ID