科尔多瓦插件:danwilson /谷歌分析 - 插件不工作的Andr​​oid设备上 [英] Cordova plugin: danwilson/google-analytics-plugin not working on android device

查看:190
本文介绍了科尔多瓦插件:danwilson /谷歌分析 - 插件不工作的Andr​​oid设备上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用的应用程序科尔多瓦在谷歌分析,
我跟着在资源库中​​的指令,并且一切运作良好的镀铬Android模拟器。
我看到谷歌分析现场直播活动。

I'm trying to use the google analytics on Cordova app, I've followed the instruction on the the repository , and all works well on the chrome android emulator . I see live activity on google analytics site.

但是当我登录到从设备的应用程序,它似乎Analytics是无法识别的应用程序。

but when i log into the app from the device , it seems the analytics is not recognizing the the app.

在我的config.xml中我有:

in my config.xml I have :

 < access origin="*" > 

在Android清单我的权限:

In the android manifest I have the permissions :

android.permission.INTERNET 

android.permission.ACCESS_NETWORK_STATE

当在调试模式下运行时,我看到的应用程序确实进入了

When running in debug mode , i see the app is indeed going into the

cordova.exec(success, error, 'UniversalAnalytics', 'trackView', [screen]);

功能,但它并不显示在谷歌分析的任何数据查看

function , but it doesn't display any data on the google analytics view

什么想法?

推荐答案

嗯,看来谷歌分析后24小时左右,使用移动API时,更新

well, it seems Google analytics is updated after 24 hours or so when using the mobile Api.

虽然我没有看到在实时取景部分的任何活动
我可以看到日志我的活动从previous天内对此网站上(电子商务分析)

Although I don't see any activity in the 'live-view' section I can see a log of my activities on the site from previous days (eCommerce analytics)

这篇关于科尔多瓦插件:danwilson /谷歌分析 - 插件不工作的Andr​​oid设备上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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