Display Google Analytics data on my web site?

前端 未结 6 874
终归单人心
终归单人心 2021-01-31 17:35

I\'m trying to figure out a way to display data collected from Google Analytics on my web site. I\'m using NopCommerce, and I want to display this information/statistics in a vi

6条回答
  •  萌比男神i
    2021-01-31 18:23

    I'd recommend to use the new Google APIs Client Library for .NET (currently in beta). Information about the Analytics API can be found here. Note that the Client Library for .NET (google-api-dotnet-client) supersedes the .NET library for the Google Data API (google-gdata).

    Unfortunately, there is no sample code available yet from Google (see this issue) but this question on SO should help.

    If you don't want to login every time you access Analytics data, you can use OAuth 2.0 authorization with offline access. You have to grant initial access to your web application, though. This requires you to login once but you can use a refresh token later on.

提交回复
热议问题