Integrate Google Analytics with a web application

  1. Goto the Google Analytics website. Create an account for the application.
Image for post
Image for post

2. Select the “Apps and web” if having both website and app.

Image for post
Image for post

3. Set up a data stream for the website.

Image for post
Image for post

4. Copy the created data stream gtag code into the header part of website.

Image for post
Image for post

5. Feel free to goto the Home or Realtime page to see the analytics.

Image for post
Image for post

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store