# Setting Up Google Analytics

Step 1 - Create a Google Analytics Property

1\. Sign in to your [Google Analytics account](https://analytics.google.com).

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.

```
NEXT_PUBLIC_GA_MEASUREMENT_ID=G-XXXXXXXXXX
```
