|
/

移动统计集成,我是安卓端的,sdk是9.4.2,页面使用手动采集后在这个实时日志中看不到页面上报

J监听者1379
发布于 5 年前
329
移动统计 U-App

我的项目里面有activity和fragment共存,用的navigation跳转,基本都是fragment页面,页面使用手动采集后在这个实时日志中看不到页面上报。

我就是调用MobclickAgent.onPageStart的上报。

MobclickAgent.setPageCollectionMode(MobclickAgent.PageMode.MANUAL),采集模式用的手动,

然后在baseActivity中这样写的: override fun onResume() { super.onResume() MobclickAgent.onResume(this) MobclickAgent.onPageStart("activity") } override fun onPause() { super.onPause() MobclickAgent.onPause(this) MobclickAgent.onPageEnd("activity") }

涉及到页面的统计,都看不到,但是方法都调用了,而且日志没有报错,成对调用,辛苦大家一起帮忙看看


3个回答
 
5 年前

楼主看一下这个链接,应该可以解决你的问题:https://developer.umeng.com/docs/119267/detail/230598

 
5 年前

fragment里面统计调用是单独的,可以写个baseFragment来做,也是在生命周期里加方法。

 
5 年前

集成测试配置

1、需集成9.4.0及以上版本的Android SDK

2、配置URL Schemes

新版集成测试需要在manifest.xml文件中配置,您需要在其中找到响应android.intent.action.MAIN的activity(也就是应用可以被外部唤起的第一个Activity),加上如下代码,让应用能被指定连接scheme唤起。


//1.唤起码默认为“um.该app对应的appkey”,不可改变
//2.请使用单独intent-filter,和其他intent-filter并列,不要将上述代码填入其他intent-filter里;
//3.该功能仅9.4.0及以上版本的SDK支持

<activity
android:name=".MainActivity"
android:label="@string/app_name">

<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="um.该app对应的appkey" />
</intent-filter>

</activity>

集成测试结果查看

产品入口:https://mobile.umeng.com/platform/config/check/realtimelog

操作指南:https://developer.umeng.com/docs/119267/detail/119463#h1-7t3-mtg-pyp

术语表:https://developer.umeng.com/docs/119267/detail/230601

Loading ...
登录社区,分享你的经验