欢迎来到天天文库
浏览记录
ID:11586851
大小:44.09 KB
页数:12页
时间:2018-07-12
《dplus android场景api替换文档》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、Dplusandroid场景API替换文档Dplusandroid场景API替换文档1通用场景1跟踪用户注册及登录1跟踪页面点赞/分享/评论/收藏3跟踪页面浏览5跟踪应用内搜索7股票场景9添加自选股/删除自选股9跟踪股票浏览10通用场景跟踪用户注册及登录1.用户登录DplusScene.trackLogin(HashMapproperty)替换为HashMapp=newHashMap();p.putAll(property);TelephonyM
2、anagertelephonyManager=(TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);StringstrDis=telephonyManager.getDeviceId();Stringdata=android.util.Base64.encodeToString(strDis.getBytes(),android.util.Base64.NO_WRAP);StringsceneID=android.util.Base64.encode
3、ToString((data+"_User").getBytes(),android.util.Base64.NO_WRAP);p.put("$senario",sceneID);Dplus.track("$Lg",p);2.用户注册DplusScene.trackSignup(HashMapproperty)替换为HashMapp=newHashMap();p.putAll(property);TelephonyManagertelephony
4、Manager=(TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);StringstrDis=telephonyManager.getDeviceId();Stringdata=android.util.Base64.encodeToString(strDis.getBytes(),android.util.Base64.NO_WRAP);StringsceneID=android.util.Base64.encodeToString((data+
5、"_User").getBytes(),android.util.Base64.NO_WRAP);p.put("$senario",sceneID);Dplus.track("$Su",p);3.设置用户id原始:DplusScene.setUserId(Stringid)替换为:Dplus.registerProperty("$uid",id);4.设置用户名DplusScene.setUserName(Stringname);替换为Dplus.registerProperty("$un",name);5.设置用户类型DplusSc
6、ene.setUserType(Stringtype)替换为Dplus.registerProperty("$at",type);6.设置用户邮箱DplusScene.setUserEmail(Stringemail);替换为Dplus.registerProperty("$em",email);7.设置用户电话DplusScene.setUserPhone(Stringphone)替换为Dplus.registerProperty("$ph",phone);8.设置用户来源DplusScene.setUserSource(Strin
7、gsource)替换为Dplus.registerProperty("$usc",source);跟踪页面点赞/分享/评论/收藏9.分享DplusScene.trackShare(HashMapproperty)替换为HashMapp=newHashMap();p.putAll(property);如果13-22的map不为空就加入到pp.putAll(13-22的map);TelephonyManagertelephonyManager=(Te
8、lephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);StringstrDis=telephonyManager.getDeviceId()
此文档下载收益归作者所有