Login
Docs
Google Analytics

Google Analytics

To setup Google Analytics in ZexaNext

Google Analytics Account Setup

  1. Setup your Google Analytics account on Google Analytics. When you register for the first time, you will be asked to add a new property.

    But if you already have a google analytics account, you can create a new property by going into the admin section of your account. Then you have to create a data stream. As we are doing this for the web, we will select web.

  2. Specify the URL to your website and give the data stream a name.

  3. Copy the measurement ID (the tracking code) that is generated for you. It will look something like this: G-XXXXXXXXXX.

Add the tracking code to your ZexaNext project

  1. Add the tracking code to your .env file.
NEXT_PUBLIC_GOOGLE_ANALYTICS_ID= "G-S02J90JMSB"