简体   繁体   English

无需登录即可获取Google Analytics(分析)数据

[英]Getting Google Analytics data without needing to login

I've played around the the Analytics API and used oauth and managed to pull data from my Analytics account, this wasn't too much of a bother and worked really well. 我玩过Analytics(分析)API,使用了oauth,并设法从我的Analytics(分析)帐户中提取了数据,这并不麻烦,而且工作得很好。

The problem is I'm building a small "data graphing" service for me clients, this will basically feed data from Google Analytics, Telephone tracking and a few other services into a central area that'll display how many people are contacting them from their website. 问题是我正在为我的客户构建一个小型的“数据图表”服务,该服务基本上会将Google Analytics(分析),电话跟踪和其他一些服务中的数据馈入一个中心区域,该区域将显示有多少人正在与其联系网站。

The problem is that to use the Google Analytic API you need to be authenticated by oauth, this prompts the user to log into a Google account. 问题是要使用Google Analytic API,您需要通过oauth进行身份验证,这会提示用户登录Google帐户。

Is there a way in which I can get my GA data without the need to manually authenticate with oauth? 有没有一种方法可以获取我的GA数据而无需使用oauth手动进行身份验证?

You could try GAPI - Google Analytics API PHP Interface 您可以尝试GAPI-Google Analytics API PHP接口

Here's the Google Code page of this project: http://code.google.com/p/gapi-google-analytics-php-interface/ 这是该项目的Google代码页: http : //code.google.com/p/gapi-google-analytics-php-interface/

Features (as mentioned on the GAPI project page): 功能 (如GAPI项目页面所述):

  • Supports CURL and fopen HTTP access methods, with autodetection 支持CURL和fopen HTTP访问方法,并具有自动检测功能
  • PHP arrays for Google Analytics metrics and dimensions 用于Google Analytics(分析)指标和维度的PHP数组
  • Account data object mapping - get methods for parameters 帐户数据对象映射-获取参数的方法
  • Report data object mapping - get methods for metrics and parameters 报告数据对象映射-获取指标和参数的方法
  • Easy filtering, use a GAPI query language for Google Analytics filters 易于过滤,对Google Analytics(分析)过滤器使用GAPI查询语言
  • Full PHP5 Object Oriented code, ready for use in your PHP application 完整的面向对象的PHP5代码,可以在您的PHP应用程序中使用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM