将谷歌分析仪表板集成到MVC Razor视图中?

时间:2022-06-01 20:49:57

I would like to have a dashboard for the administrator of my website to view as soon as he logs in to the admin section of the website, which is an MVC4 web application, using Razor view engine. I am fairly new to web development, and I can't find a simple tutorial on how to do this.

我希望我的网站管理员在登录到网站的管理部分(使用Razor视图引擎,一个MVC4 web应用程序)后,有一个仪表板供他查看。我对web开发相当陌生,我找不到一个简单的教程来说明如何实现这一点。

How do I go about creating a cshtml view that has a sort of "widget" or such that contains the dashboard from the google analytics website?

如何创建具有某种“小部件”的cshtml视图,或者包含来自谷歌分析网站的仪表板?

1 个解决方案

#1


2  

Mahdi Taghizadeh has written an article that can help you retrieving the analytics data from Google and presenting it on a view:

Mahdi Taghizadeh写了一篇文章,可以帮助您从谷歌中检索分析数据,并将其呈现在视图中:

How to use Google Data API in ASP.NET MVC. Part 1 – Google Analytics

如何在ASP中使用谷歌数据API。净MVC。第1部分-谷歌分析

#1


2  

Mahdi Taghizadeh has written an article that can help you retrieving the analytics data from Google and presenting it on a view:

Mahdi Taghizadeh写了一篇文章,可以帮助您从谷歌中检索分析数据,并将其呈现在视图中:

How to use Google Data API in ASP.NET MVC. Part 1 – Google Analytics

如何在ASP中使用谷歌数据API。净MVC。第1部分-谷歌分析