如何在没有插件的情况下使用Google Analytics(分析)与Phonegap? [英] How to use Google Analytics with Phonegap without a plugin?

查看:151
本文介绍了如何在没有插件的情况下使用Google Analytics(分析)与Phonegap?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个应用,我想从用户那里获得分析。我尝试使用Phonegap插件,但我没有运气尝试实现它。

I am making an app and I want to get analytics from the users. I tried to use the Phonegap Plugin, but I didn't have any luck trying to implement it.

我想知道是否可能获得Google Analytics应用程序像一个正常的网页,并在我的页面的头部放一些javascript。

I was wondering if it was possible to get Google Analytics by treating the app like a normal webpage and putting some javascript in the head of my page.

有更好的方法吗?

推荐答案

Alex建议的pokki解决方案是

The pokki solution suggested by Alex is working fine with a few adjustments to remove the need of Pokki.

我在这里为这个清理版本创建了一个git项目:

I created a git project for this cleaned-up version here :

https://github.com/ggendre/GALocalStorage

在Android 4.1和ios6上工作的很好,我会很快测试更多的设备。希望这可以帮助 ! :)

Works great on android 4.1 and ios6, I will test more device very soon. Hope this helps ! :)

这篇关于如何在没有插件的情况下使用Google Analytics(分析)与Phonegap?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆