Dplus的玩法

来源:互联网 发布:淘宝网店申请多少钱 编辑:程序博客网 时间:2024/05/16 02:04

http://dplus.cnzz.com/

dplus.js

dplusobj.js


以下设置页面的信息
<script>
 dplus.define('page', function (page) {
        page.setType('html');
        page.setTitle('xxx');
        page.setTags(['kylife' , 'xxx']);
        page.setCategory(['xxx' , 'xxx' , 'xxx']);
        page.setAuthor('xxx');
        page.setEditor('yxxx');
        page.view();
    });
</script>


点击某个节点触发 dplus事件 track

$(".cg").click(function(){ 
dplus.track("key" , {name: $(this).html()});
})


超级属性,设置之后以后 所有事件都会 带着本属性

dplus.register({"key":dplus.get_property("distinct_id")});

1 0
原创粉丝点击