Javascript 无法使cordova中的活动与analytics v4配合使用

Javascript 无法使cordova中的活动与analytics v4配合使用,javascript,android,cordova,google-analytics,cordova-plugins,Javascript,Android,Cordova,Google Analytics,Cordova Plugins,我正在尝试为我的Cordova应用程序开展活动 我正在使用以下插件: 他们对运动有支持 用于检索推荐人,因此我无法在分析插件中找到获取它的方法 将应用程序首选项中保存的refferrer保存到我的javascript中 在上下文中,我使用Cordova 4.3.0和google analytics v4 我的清单如下所示: <receiver android:exported="true" android:name="com.eightz.mobile.cordova.plugin.and

我正在尝试为我的Cordova应用程序开展活动

我正在使用以下插件:

他们对运动有支持

用于检索推荐人,因此我无法在分析插件中找到获取它的方法

将应用程序首选项中保存的refferrer保存到我的javascript中

在上下文中,我使用Cordova 4.3.0和google analytics v4

我的清单如下所示:

<receiver android:exported="true" android:name="com.eightz.mobile.cordova.plugin.android.referrer.Receiver">
            <intent-filter>
                <action android:name="com.android.vending.INSTALL_REFERRER" />
            </intent-filter>
</receiver>
他们工作,他们回来

Broadcasting: Intent { act=com.android.vending.INSTALL_REFERRER cmp=my.app/com.eightz.mobile.cordova.plugin.android.referrer.Receiver (has extras) }
Broadcast completed: result=0
但在logcat中,我发现TravelTrackingReceiver未注册错误,即使应用程序已关闭

我也尝试过GAv3和GAv4接收器,但我无法使活动跟踪接收器工作,我仍然得到

CampaignTrackingReceiver is not registered, not exported or is disabled. Installation campaign tracking is not possible. See http://goo.gl/8Rd3yj for instructions.
或者什么都没有


有人有什么想法吗?我错过了什么?提前感谢

我终于解决了这个问题,问题是我有两个接收器,安卓搞砸了。使用此解决方案和三个插件,您可以使用Cordova中的真实数据跟踪活动。日志运行得不是很好,但是您可以看到调试javascript的实际路径。祝你好运。

你已经试过了吗(哪些是集成的)。这是一款满足您需求的多功能插件。我正在查看它,但我没有看到任何关于露营的内容。我的目标是跟踪电子邮件活动。编辑:好的,我看到了,但我有销售问题。如何检索要包含在曲目中的javascript的活动URL?表示:“如果您的应用程序有两个为此目的注册的接收者,建议您创建一个自定义接收者,该接收者可以接收INSTALL_Referer意图,并根据需要将其发送给其他接收者,包括Google Analytics接收者。”。你如何将它发送到谷歌的接收器?或者eightz的插件能帮我们吗?
Broadcasting: Intent { act=com.android.vending.INSTALL_REFERRER cmp=my.app/com.eightz.mobile.cordova.plugin.android.referrer.Receiver (has extras) }
Broadcast completed: result=0
CampaignTrackingReceiver is not registered, not exported or is disabled. Installation campaign tracking is not possible. See http://goo.gl/8Rd3yj for instructions.