This is simple Google Analytics web application for measuring website traffic.
Before starting with the project, understand how digital analytics can help you improve your business. please do the following steps:
-
First, you need a Google Analytics account. If you have a primary Google account that you use for other services like Gmail, Google Drive, Google Calendar, Google+, or YouTube, then you should set up your Google Analytics using that Google account. Or you will need to create a new one.
-
Once you are finished, Do go to
Admin -> User Managment -> Tracking Info -> Tracking Code
Then you will get or show your Google Analytics code. LikeTrcking Id and Global Site Tag (gtag.js)
After that copy the gtag.js file code. -
If you have a website built with HTML files, you will add the tracking code before the tag on each of your pages. This must be installed on every page on your website, like Add Google Analytics Code In Html File.
-
Once you are finished everything, Clone repository and goto
public/index.htm
file and replace myUA-149292180-1
to yourcode
. -
After finishing everything install node packages By typing
sudo npm install
on your projct directory. After installation of packages start server by typingnpm start
. Then Open your favourite web browser and Visit -
Then visit to your Google Analytics account, Then go to Realtime -> Content.You will show active users on site, Active Page etc information.
In conclusion, I hope you've enjoyed this beginner's introduction to Google Analytics for beginners. If you're a beginner and have a burning questions, please ask in the comments. I'll be happy to help!
More information - Visit
GOOD DAY !!