Setting Up Google Analytics in an Angular Application

Get user insights from your Angular Application with Google Analytics

Image for post
Image for post
Photo by Webaroo on Unsplash

Create an Angular application

$ ng new my-app

Sign in to Google Analytics

Setup Account

Image for post
Image for post
Google Analytics home page
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post

Get Tracking Id

Image for post
Image for post
Image for post
Image for post

Run the application

$ cd my-app
$ ng serve -o

Monitor Web Insights in Google Analytics

Image for post
Image for post

Conclusion

Written by

I develop software by profession. My interests include: history, economics, politics & enterprise-architecture. I am a child of God.

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