[英]Google Analytics API - Get Pageviews for Dashboard
I am trying to create a blog dashboard that will connect to your Analytics account and show BASIC stats on your site. 我正在尝试创建一个博客仪表板,该仪表板将连接到您的Google Analytics帐户并在您的网站上显示BASIC统计信息。 I am using Node.js for the blog system, so it would be best if it was in Javascript so I can convert it for Node.
我使用Node.js作为博客系统,所以最好是在Javascript中,所以我可以将它转换为Node。
I am looking for a how-to guide, or someone to point me in the right direction. 我正在寻找一个操作指南,或者有人指出我正确的方向。 I have tried some sample code on the web but none of it works, or its outdated.
我在网上尝试了一些示例代码,但没有一个可行,或者它过时了。
Basically all I want is pageviews for the past 7 days by day. 基本上我只想要过去7天的综合浏览量。
Any help would be GREATLY appreciated. 任何帮助将不胜感激。
Thanks, 谢谢,
I have created a service to do exactly this: EmbeddedAnalytics . 我创建了一个服务来完成这个: EmbeddedAnalytics 。 Our service uses Google 3rd party authorization protocols so you are not providing us with your credentials.
我们的服务使用Google第三方授权协议,因此您不会向我们提供您的凭据。 All you need to do is embed a snippet of code into your site where you want the stats to show.
您需要做的就是在您希望显示统计信息的网站中嵌入一段代码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.