Setting Up Google Analytics
Chapter 1:
Step 1 - Create a Google Analytics Property
1. Sign in to your Google Analytics account.
2. In the Admin section, create a new property and follow the steps.
3. After property creation, navigate to Data Streams and select Web.
4. Copy your Measurement ID (GA_MEASUREMENT_ID). It looks like G-XXXXXXXXXX.
Step 2 - Add Your Measurement ID to .env
1. Open your .env.local file (create it if it doesn’t exist).
2. Add your Google Analytics Measurement ID under the variable name NEXT_PUBLIC_GA_MEASUREMENT_ID.
Last updated