是否有办法将谷歌分析报告整合到网站中

时间:2021-06-19 15:16:18

One of my clients has requested this feature. They dont want to login to google analytics and want all the tracking/reporting through the site. Is there a way to show reporting inside an asp.net page?

我的一个客户要求这个功能。他们不希望登录谷歌分析,并希望所有的跟踪/报告通过网站。是否有一种方法在asp.net页面中显示报告?

2 个解决方案

#1


2  

I would advise that get hold of the data by access the Google Analytics API by sending an appropriate HTTP request to the analytics account. It will reply by sending an XML feed that you can parse into a database should you wish to or to a flat file.

我建议通过向分析帐户发送适当的HTTP请求来访问谷歌分析API来获取数据。它将通过发送XML提要来进行响应,您可以在需要时将其解析为数据库或平面文件。

Here is a link to the Google Data API

这里有一个到谷歌数据API的链接

If you plan to make a dashboard out of that data you'll need to either configure a flash object to listen to the data you've parsed or make use of the HTML5 <canvas> object and some javascript if you want on:hover displays of values etc. Depends on your requirements.

如果您计划用这些数据创建一个仪表板,您需要配置一个flash对象来侦听您解析过的数据,或者使用HTML5 对象和一些javascript(如果您愿意的话):悬浮显示值等等,这取决于您的需求。

#2


1  

  1. The official Google C# library to download data from Google Analytics
  2. 官方的谷歌c#库从谷歌Analytics下载数据
  3. A head start on the process of collecting the data.
  4. 开始收集数据的过程。
  5. A CodePlex project to pull Google Analytics into SQL Server 2008 using SSIS.
  6. 使用SSIS将谷歌分析导入SQL Server 2008的CodePlex项目。
  7. An older set of Google Analytics usercontrols on CodePlex.
  8. 一组较老的谷歌分析用户控件。
  9. An even older set of Google Analytics usercontrols with less features(?) on CodePlex.
  10. 一组更老的谷歌分析用户控件,在CodePlex上使用的功能更少(?)。
  11. A classic ASP analytics scraper circa Jan 2010.
  12. 一个典型的ASP分析刮刀大约2010年1月。

#1


2  

I would advise that get hold of the data by access the Google Analytics API by sending an appropriate HTTP request to the analytics account. It will reply by sending an XML feed that you can parse into a database should you wish to or to a flat file.

我建议通过向分析帐户发送适当的HTTP请求来访问谷歌分析API来获取数据。它将通过发送XML提要来进行响应,您可以在需要时将其解析为数据库或平面文件。

Here is a link to the Google Data API

这里有一个到谷歌数据API的链接

If you plan to make a dashboard out of that data you'll need to either configure a flash object to listen to the data you've parsed or make use of the HTML5 <canvas> object and some javascript if you want on:hover displays of values etc. Depends on your requirements.

如果您计划用这些数据创建一个仪表板,您需要配置一个flash对象来侦听您解析过的数据,或者使用HTML5 对象和一些javascript(如果您愿意的话):悬浮显示值等等,这取决于您的需求。

#2


1  

  1. The official Google C# library to download data from Google Analytics
  2. 官方的谷歌c#库从谷歌Analytics下载数据
  3. A head start on the process of collecting the data.
  4. 开始收集数据的过程。
  5. A CodePlex project to pull Google Analytics into SQL Server 2008 using SSIS.
  6. 使用SSIS将谷歌分析导入SQL Server 2008的CodePlex项目。
  7. An older set of Google Analytics usercontrols on CodePlex.
  8. 一组较老的谷歌分析用户控件。
  9. An even older set of Google Analytics usercontrols with less features(?) on CodePlex.
  10. 一组更老的谷歌分析用户控件,在CodePlex上使用的功能更少(?)。
  11. A classic ASP analytics scraper circa Jan 2010.
  12. 一个典型的ASP分析刮刀大约2010年1月。