用于 Google Analytics API 的 PHP 类

发布于 2024-11-19 20:31:01 字数 333 浏览 3 评论 0 原文

我想找到一个 PHP 类或框架来从 Google Analytics API 获取数据

我已经使用过 gapi,它很棒,但它自 2009 年以来从未更新过,并且缺乏 API 的新功能(例如分段)。

您能分享一下您使用过的类及其主要功能吗?

谢谢

I want to find a PHP class or framework to get data from the Google Analytics API.

I've already used gapi, which is great but it has never been updated since 2009 and it lacks new features from the API such as segments.

Can you please share the classes you've used and their key features ?

Thank you

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

溺深海 2024-11-26 20:31:01

编辑:我确实找到了一个实验存储库的 ="nofollow">问题 28

您提到了gapi 已经存在,但就 Google Analytics 的 PHP 库而言,它似乎是标准。您可能会在 GitHub 包含您所需的功能。

我环顾四周,似乎您最好的选择是分叉现有的类(例如gapi)并向其添加功能,这不是您想听到的。我建议您查看一下 Google 支持的以获取线索关于他们如何实现您想要的功能。

这是您为开源项目做出贡献的好机会。尽管此代码最后一次更改是在 2009 年,但它相当短,并且只要有相应的 API 功能,就可以轻松自定义以执行您想要的操作。

尝试使用查询浏览器来查看可用的内容。看起来它也可以帮助您构建分段查询。

Edit: I did find an experimental implementation of segments in issue 28 for the repository.

You mentioned gapi already but it seems to be the standard as far as a PHP library for Google Analytics goes. You may find fresher classes on GitHub with your needed functionality.

I took a look around and it seems that your best option is to fork an existing class such as gapi and add the functionality to it which is not what you wanted to hear. I recommend taking a look around at the Google supported libraries for clues on how they implemented the features you want.

This is a good opportunity for you to contribute to an open-source project. Even though this code was last changed in 2009, it's fairly short and can be easily customized to do what you want as long as the corresponding API functionality is there.

Try using the Query Explorer to see what's available. It looks like it will help you build segment queries too.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文