Thasneen
Thasneen

Reputation: 107

Google Analytics integration with ASP MVC 5 and AngularJS

I'm working on a project to get website statistics from Google Analytics API using ASP MVC 5 (C#) and AngularJS. I'm not sure how to get started with it. Please guide me to start with this project. What are the things I need to use? (API keys, etc).

I already have a Google account with Google Analytics statistics. I will be developing it using ASP MVC 5 (C#) and AngularJS.

Upvotes: 0

Views: 2678

Answers (1)

Oren Bochman
Oren Bochman

Reputation: 1274

You need to do two tasks.

  1. First set up analytics tracking by integrating google's analytics code snippet in to the web site. Look up analytics academy on this.

  2. You will need to access google analytics api. Look at the Query Explorer.

  3. Here is a code sample on using google analytics api to authenticate.

  4. Finally you can look at these additional code samples on accessing the google analytics API using pure JavaScript.There is no specific methods in angular or MVC5 for accessing the google analytic API.

Upvotes: 4

Related Questions