如何在混合移动应用中实施Google

如何在混合移动应用中实施Google

本文介绍了如何在混合移动应用中实施Google Analytics(分析)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个使用HTML5,CSS和jQuery Mobile的混合移动应用程序。我将使用Cordova Js将HTML5应用程序转换为适用于iOS和Android的原生移动应用程序。我想使用Google Analytics来跟踪用户执行的各种活动。我发现GA为本机应用程序提供了SDK,但对混合应用程序没有多少指定。您是否为Cordova或基于PhoneGap的应用程序实施了跟踪?你能为我提供一些指导方法吗?

解决方案

我使用ngCordova Google Analytics插件。您不需要Angular或Cordova来使用它



易于使用。



警告!当你把它设置完毕后,24小时就可以传播或Google做的任何事情。人们发现它不工作,并寻找解决方案(不能找到),然后第二天BAM就会很好。

I am writing a hybrid mobile app using HTML5, CSS and jQuery Mobile. I will use Cordova Js to convert the HTML5 app to native mobile apps for iOS and Android. I want to use Google Analytics to track various activities performed by users. I found that GA provides SDKs for native apps but not much was specified for hybrid apps. Have you implemented tracking for Cordova or PhoneGap based apps? Can you provide me some direction on how to do it?

解决方案

I use the ngCordova Google Analytics plugin. You don't need Angular or Cordova to use it http://ngcordova.com/docs/plugins/

The git and docs are here: https://github.com/danwilson/google-analytics-plugin

Easy to use.

Warning! When you set it all up leave it 24hrs to 'propagate' or whatever Google does. People find its not working and go searching for solutions (which cannot be found) and then BAM the next day its all good.

这篇关于如何在混合移动应用中实施Google Analytics(分析)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 19:43