How to integrate google analytics on your website(Angular, React, JS, PHP, etc)?

Vikas Kohli
2 min readJun 19, 2020

So I m going to integrate the google analytics in the website

First of all, before going to integrate you need to set up the analytics account.

After creating an account you need to create a property from where you're getting the tracking code and view id.

Choose Analytics Property

You choose the web

Add Info for Selected Property

Then add your data for the same.

Admin Settings
Tracking Code

Go to Tracking Info -> Tracking Code

Just copy the code and then your google analytics is set for your website.

Here you will your analytics report.

Google Analytics Home

NOw you can put that code in any website Angular, React, Php, or simply HTML or anyone that’s it, it works like a charm.

Track your users, get to know what they want

--

--

Vikas Kohli

B.E Software Developer, Enthusiastic, Ego-surfing