I am looking for a way to implement Google Analytics tracking in my web service. My app sends and receives XML from the server, so implementing the Google JavaScript tracking stuff is unfortunately no option.
我正在寻找一种在我的web服务中实现谷歌分析跟踪的方法。我的应用程序发送和接收来自服务器的XML,所以实现谷歌JavaScript跟踪功能是很不幸的。
Any other alternatives? Someone must have done this before :-)
还有其他选择吗?一定有人以前这样做过:
1 个解决方案
#1
-1
Have you heard of HeartBeatApp? It's an Objective-C plugin that provides fine-tuned metric tracking specifically for iPhone applications. Check it out here:
你听说过HeartBeatApp吗?这是一个Objective-C插件,专门为iPhone应用程序提供微调的度量跟踪。检查一下:
http://www.heartbeatapp.com/
I'm using it in two applications now, and in my opinion it is the best "plug-and-play" style solution for tracking app usage and metrics.
我现在在两个应用程序中使用它,在我看来,它是跟踪应用程序使用和度量的最佳“即插即用”风格解决方案。
If you are set on integrating Google Analytics, you'll need to run their JavaScript in an HTML page somewhere in your app. My approach would be to place a secret/hidden UIWebView on each app page screen, and programmatically load a static HTML page just for tracking in the background on each screen load.
如果你设置在集成谷歌分析,你需要运行在一个HTML页面的JavaScript应用程序的某个地方。我的方法是将一个秘密/隐藏UIWebView屏幕上每个应用程序页面,并通过编程加载静态HTML页面在后台跟踪每个屏幕上负载。
Hope that helps.
希望有帮助。
-Mark
马克
#1
-1
Have you heard of HeartBeatApp? It's an Objective-C plugin that provides fine-tuned metric tracking specifically for iPhone applications. Check it out here:
你听说过HeartBeatApp吗?这是一个Objective-C插件,专门为iPhone应用程序提供微调的度量跟踪。检查一下:
http://www.heartbeatapp.com/
I'm using it in two applications now, and in my opinion it is the best "plug-and-play" style solution for tracking app usage and metrics.
我现在在两个应用程序中使用它,在我看来,它是跟踪应用程序使用和度量的最佳“即插即用”风格解决方案。
If you are set on integrating Google Analytics, you'll need to run their JavaScript in an HTML page somewhere in your app. My approach would be to place a secret/hidden UIWebView on each app page screen, and programmatically load a static HTML page just for tracking in the background on each screen load.
如果你设置在集成谷歌分析,你需要运行在一个HTML页面的JavaScript应用程序的某个地方。我的方法是将一个秘密/隐藏UIWebView屏幕上每个应用程序页面,并通过编程加载静态HTML页面在后台跟踪每个屏幕上负载。
Hope that helps.
希望有帮助。
-Mark
马克