Docs
Google Analytics
Google Analytics
To setup Google Analytics in ZexaNext
Google Analytics Account Setup
-
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.
-
Specify the URL to your website and give the data stream a name.
-
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
- Add the tracking code to your
.env
file.