Analytics Setup
GA4, Clarity, and AdSense configuration.
PRID: 1202
VERIFIED
1 min read
Analytics & Telemetry Setup Guide
This scaffold comes pre-integrated with Google Analytics 4 (GA4), Microsoft Clarity, and Google AdSense.
1. Quick Setup (The Easy Way)
Open site.config.ts and update the analytics object with your production IDs:
typescriptexport const siteConfig = { // ... analytics: { googleAnalyticsId: "G-XXXXXXXXXX", microsoftClarityId: "XXXXXXXXXX", googleAdsenseId: "ca-pub-XXXXXXXXXXXXXXXX", }, // ... }
...