使用PHP记录Google Analytics?可能?

时间:2022-08-16 15:14:39

I use Google Analytics and love it, I have all the goals and conversions setup etc. It works great.

我使用谷歌分析并喜欢它,我有所有的目标和转换设置等。它很棒。

My current task is recording mobile apps. I do not want to hard code it into the App due to ease of changing methods, so I plan on planting the analytics in the mobile API (which is in PHP). I would like to record google analytics events using PHP instead of Javascript.

我目前的任务是录制移动应用。由于易于更改方法,我不想将其硬编码到应用程序中,因此我计划在移动API(使用PHP)中植入分析。我想使用PHP而不是Javascript记录谷歌分析事件。

I know there is a PHP API for Google analytics, but I think this is for reporting only. What would you suggest doing? Maybe a CURL or something? Im lost!

我知道有一个用于Google分析的PHP API,但我认为这仅适用于报告。你会建议做什么?也许是CURL或其他什么?我迷路了!

Thanks for your help!

谢谢你的帮助!

2 个解决方案

#1


3  

Would this work: http://code.google.com/mobile/analytics/docs/

这会有用吗:http://code.google.com/mobile/analytics/docs/

#1


3  

Would this work: http://code.google.com/mobile/analytics/docs/

这会有用吗:http://code.google.com/mobile/analytics/docs/

#2