GAPI 类,Google Analytics API

发布于 2024-12-22 08:36:38 字数 566 浏览 0 评论 0原文

我即将在 Google Analytics API 中启动一个新项目PHP。

我了解到 Google Analytics 将在 6 个月内弃用 XML v2.3 和 v2.4,因此显然您只能使用 v3 并检索 JSON 格式的信息。

http://analytics.blogspot.com/2011/12/introducing -google-analytics-core.html

我的问题如下:这是否意味着 GAPI 类将不再起作用?以前用过这个类的人可以帮我回答这个问题吗?

http://code.google.com/p/google-api-php- client/

在这种情况下,执行相同操作的 PHP 类的任何替代建议。

非常感谢

I am about to start a new project in the Google Analytics API & PHP.

I read that Google Analytics will be deprecating XML v2.3 and v2.4 and in 6 months time, so aparently you will only be able to use v3 and retrieve information in JSON format.

http://analytics.blogspot.com/2011/12/introducing-google-analytics-core.html

My question is the following: Does this means that GAPI class won't work any longer? Anyone who has used this class before can help me answering this question ??

http://code.google.com/p/google-api-php-client/

In that case, any alternative suggestions of PHP classes that do the same thing.

Thanks so much

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

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

发布评论

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

评论(1

最终幸福 2024-12-29 08:36:38

我使用 GAPI 一段时间了。我可以有信心地说,是的,它会崩溃,如果不是由于 XML,它将是由于 google 所做的其他一些更改。

话虽如此,GAPI 是我发现的 php 的最佳解决方案。它确实每六个月到一年就会损坏一次,通常需要更换一两行才能修复。但 GAPI 非常受欢迎,所以至少你知道,当你的客户打电话说分析向他们抛出错误时,你不会是唯一一个抓狂的开发人员。

十有八九,当我遇到问题时,其他人已经找到了解决方案 - 这很好。

还有其他一些 php 选项,但 GAPI 似乎是最受欢迎的(通常是最好的方式)

我的方法是在仪表板中构建分析摘要,并在下面提供 google 分析的链接,以便客户可以看到完整数据或在 GAPI 中断时前往那里。一段时间以来,我一直将所有网站放在同一个模块化系统上。我将 GAPI 作为库保留在我的管理布局模块中,这意味着我可以进行一次修复并将其推广到我的所有网站,而无需太多戏剧性。

总之,使用它但要预料到它会损坏——这样当它损坏时你就不会失望。

I've been using GAPI for a while now. And I can say with some confidence that yes it will break, if not due to XML it will be due to some other change google makes.

Having said that GAPI is the best solution I have found out there for php. It does break every 6 months to a year, usually needs one or two lines changing to fix. But GAPI is pretty popular so at least you know when your clients are calling saying analytics is throwing errors at them, you wont be the only dev tearing your hair out.

9 times out of 10, by the time I've got a problem someone else has found the fix - which is nice.

There are a few other php options out there but GAPI seems to be the most popular (usually the best way to go imho)

My approach is to build an analytics summary in the dashboard and provide a link to google analytics underneath so clients can see the full data or go there when GAPI breaks. I have been putting all my sites on the same modular system for a while now. I keep GAPI as a library in my admin layout module, this means I can make the fix once and roll it out to all my sites without too much drama.

In summary, use it but expect it to break - that way you wont be disappointed when it does.

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