将 Google Analytics 集成到 C++ 的最佳方式是什么? OpenFrameworks 桌面项目?
我目前正在构建一个 OpenFrameworks 项目,需要使用 Google Analytics 来跟踪用户交互。我还没有找到任何现有的 C++ 库来执行此操作,并且正在考虑编写自己的库。 API 是否足够开放以允许创建自定义库?如果不存在,有什么想法可以从哪里开始编写我自己的代码吗?
I'm currently building an OpenFrameworks project and need to use Google Analytics to track user interactions. I have yet to find any existing C++ libraries for doing so, and am considering writing my own. Is the API open enough to allow a custom library to be created? If one doesn't exist, any ideas on where to begin coding my own?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
是的,扩展开放框架是可能且容易的!
如果有适合您需要的插件,您可以在此处查看。也许 ofxCurl 或 ofxHttpUtils 是创建请求(如 yahelc 评论中提到的请求)的正确选择。
如果您在那里找不到解决方案,您可以在此处查找有关为 openFrameworks 创建插件的第一手信息。如果您还有任何其他问题,请在官方 openframeworks 论坛中提问,您可以在此处找到该论坛。
Yes it is possible and easy to extend openframeworks!
You can look here if there is an addon which fits your need. Maybe ofxCurl or ofxHttpUtils are the right ones to create an request like the one mentioned in the comment by yahelc.
If you don't find a solution there, you can look here to find first informations about creating addons for openFrameworks. If you have any further questions, please ask in the official openframeworks forums which you can find here.
看起来你必须构建自己的解决方案...我会使用 ofxHttpUtils 来 ping Google 的 分析 API。您还应该考虑将您的作品打包为 OF 插件并在 openframewors.cc 中共享
Looks like you'll have to build your own solution... I'd use ofxHttpUtils to ping Google's Analytics API. You should also consider wrapping your work as an OF addon and sharing in openframewors.cc
我构建了一个 OpenFrameworks 插件来做到这一点:
http://github.com/armadillu/ofxGoogleAnalytics
I've built an OpenFrameworks add-on to do just that:
http://github.com/armadillu/ofxGoogleAnalytics