-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
40 lines (33 loc) · 1.98 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<!-- start Dplus --><script type="text/javascript">!function(a,b){if(!b.__SV){var c,d,e,f;window.dplus=b,b._i=[],b.init=function(a,c,d){function g(a,b){var c=b.split(".");2==c.length&&(a=a[c[0]],b=c[1]),a[b]=function(){a.push([b].concat(Array.prototype.slice.call(arguments,0)))}}var h=b;for("undefined"!=typeof d?h=b[d]=[]:d="dplus",h.people=h.people||[],h.toString=function(a){var b="dplus";return"dplus"!==d&&(b+="."+d),a||(b+=" (stub)"),b},h.people.toString=function(){return h.toString(1)+".people (stub)"},e="disable track track_links track_forms register unregister get_property identify clear set_config get_config get_distinct_id track_pageview register_once track_with_tag time_event people.set people.unset people.delete_user".split(" "),f=0;f<e.length;f++)g(h,e[f]);b._i.push([a,c,d])},b.__SV=1.1,c=a.createElement("script"),c.type="text/javascript",c.charset="utf-8",c.async=!0,c.src="//w.cnzz.com/dplus.php?id=1261972782",d=a.getElementsByTagName("script")[0],d.parentNode.insertBefore(c,d)}}(document,window.dplus||[]),dplus.init("1261972782");</script><!-- end Dplus -->
</head>
<body>
<button onclick="register()">注册</button>
<button onclick="register()">注册</button>
<button onclick="register()">注册</button>
<button onclick="register()">注册</button>
<a href="http://www.baidu.com" class="trackA">百度</a>
<a href="http://www.qq.com" class="trackA">腾讯</a>
<a href="http://www.ifeng.com" class="trackA">凤凰</a>
</body>
<script type="text/javascript" charset="UTF-8">
window.onload = function () {
dplus.register({
"age" : 29,
"gender" : "male"
});
dplus.track("页面浏览" , {name: "首页"});
dplus.track_links("a.trackA" , "搜索引擎");
};
function register() {
dplus.track("注册", {
product: "连衣裙",
money: 100
});
}
</script>
</html>