如何查看自己网站的访问量

一.方法种类

具体网站有很多比如:百度统计,CNZZ,51啦,腾讯分析,这几个是当下最流行的,这里主要介绍腾讯分析;

 

二.腾讯分析网址

http://ta.qq.com/

 

三.具体流程

 

1.登录注册你的账号;

如何查看自己网站的访问量

 

2.立即添加站点,获取得到浏览量的js代码,放入到自己的网站项目里面;

 

如何查看自己网站的访问量

 

 

2.1 你可以使用外链式,但是你后台可能用到https://请求,所以你可以把代码复制出来,新建一个js文件,保存出来;

<script type="text/javascript" src="http://tajs.qq.com/stats?sId=66071814" charset="UTF-8"></script>

 

2.2 然后你新建一个browse.js文件,复制出来加到<head>标签里面,切记请每个页面都引入这个js,能更好的查询到每个页面的浏览量;

如何查看自己网站的访问量
;(function(global){
    global.Ta=global.Ta||{};
    Ta.hack=function(){
        return {
            params:'',
            conf:{sid:66071814,pf:1,logo:255,hot:{}}        };
    };
})(this);

(function(h,n){function v(c){c+="";var a,b,d,e,f,g;d=c.length;b=0;for(a="";b<d;){e=c.charCodeAt(b++)&255;if(b==d){a+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e>>2);a+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((e&3)<<4);a+="==";break}f=c.charCodeAt(b++);if(b==d){a+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e>>2);a+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((e&3)<<4|(f&240)>>
4);a+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((f&15)<<2);a+="=";break}g=c.charCodeAt(b++);a+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e>>2);a+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((e&3)<<4|(f&240)>>4);a+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((f&15)<<2|(g&192)>>6);a+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(g&63)}return a}function p(c){return(c=
document.cookie.match(new RegExp("(?:^|;\\s)"+c+"=(.*?)(?:;\\s|$)")))?c[1]:""}function q(c,a,b){var d=window.location.host,e={"com.cn":1,"net.cn":1,"gov.cn":1,"com.hk":1,"co.nz":1,"org.cn":1,"edu.cn":1},f=d.split(".");2<f.length&&(d=(e[f.slice(-2).join(".")]?f.slice(-3):f.slice(-2)).join("."));document.cookie=c+"="+a+";path=/;domain="+d+(b?";expires="+b:"")}function l(c){var a,b,d,e={};void 0===c?(d=window.location,c=d.host,a=d.pathname,b=d.search.substr(1),d=d.hash):(d=c.match(/\w+:\/\/((?:[\w-]+\.)+\w+)(?:\:\d+)?(\/[^\?\\\"\'\|\:<>]*)?(?:\?([^\'\"\\<>#]*))?(?:#(\w+))?/i)||
[],c=d[1],a=d[2],b=d[3],d=d[4]);void 0!==d&&(d=encodeURI(d.replace(/\"|\'|\<|\>/ig,"M")));if(b)for(var f=b.split("&"),g=0,h=f.length;g<h;g++)if(-1!=f[g].indexOf("=")){var m=f[g].indexOf("="),k=f[g].slice(0,m),m=f[g].slice(m+1);e[k]=m}return{host:c,path:a,search:b,hash:d,param:e}}function r(c){return(c||"")+Math.round(2147483647*(Math.random()||.5))*+new Date%1E10}function t(c,a){var b=document.createElement("script"),d=document.getElementsByTagName("script")[0];b.src=c;b.type="text/javascript";b.onload=
b.onerror=b.onreadystatechange=function(){/loaded|complete|undefined/.test(b.readyState)&&(b.onload=b.onerror=b.onreadystatechange=null,b.parentNode.removeChild(b),b=void 0,a())};d.parentNode.insertBefore(b,d)}function w(){var c=l(),a={dm:c.host,pvi:"",si:"",url:c.path,arg:encodeURIComponent(c.search||""),ty:1};a.pvi=function(){var b=p("pgv_pvi");b||(a.ty=0,b=r(),q("pgv_pvi",b,"Sun, 18 Jan 2038 00:00:00 GMT;"));return b}();a.si=function(){var a=p("pgv_si");a||(a=r("s"),q("pgv_si",a));return a}();
return a}function x(){var c=l(document.referrer),a=l();return{rdm:c.host,rurl:c.path,rarg:encodeURIComponent(c.search||""),adt:a.param.ADTAG||a.param.adtag}}function y(){try{var c=navigator,a=screen||{width:"",height:"",colorDepth:""},b=document.body,d=a.width+"x"+a.height,e=a.colorDepth+"-bit",f=(c.language||c.userLanguage).toLowerCase(),g=c.javaEnabled()?1:0,h=(new Date).getTimezoneOffset()/60,a="";b&&b.addBehavior&&(b.addBehavior("#default#clientCaps"),a=b.connectionType);var b={fl:"",scr:d,scl:e,
lg:f,jv:g,tz:h,ct:a},m,k,l,n;if((m=c.plugins)&&(k=m.length))for(c=0;c<k;c++){if(l=m[c].description.match(/Shockwave Flash ([\d\.]+) \w*/))b.fl=l[1]}else n=(new ActiveXObject("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version"),b.fl=n.replace(/^.*\s+(\d+)\,(\d+).*$/,"$1.$2")}catch(p){return{}}return b}function z(){var c={};if("undefined"!=typeof _taadHolders&&0<_taadHolders.length)for(var a=0,b=_taadHolders,d=b.length;a<d;a++)c[b[a]]=c[b[a]]?c[b[a]]+1:1;var a=[],e;for(e in c)c.hasOwnProperty(e)&&
a.push(e+"*"+c[e]);return{ext:"adid="+a.join(":")}}function A(){var c=[],a;for(a in k){var b=p(k[a].c_id),d;"afs"==a?d=(d=/ssid=([^&]*)/i.exec(l().hash))&&d[1]?d[1]:"":(d=l().param,d=d[k[a].id]?d[k[a].id]:"");d?(c.push("ty="+k[a].key+";ck=0;id="+d),b=new Date,b.setTime(b.getTime()+2592E6),q(k[a].c_id,d,b.toGMTString())):b&&c.push("ty="+k[a].key+";ck=1;id="+b)}return{pf:c.join("|")}}function u(c){c=c||{};c.conf&&function(){var a=c.conf,b;for(b in a)a.hasOwnProperty(b)&&(h[b]=a[b])}();if(h.sid&&!Ta[h.sid]){for(var a=
[],b=0,d=[w(),x(),{r2:h.sid,r3:"undefined"==typeof _speedMark?"-1":new Date-_speedMark,r4:h.pf||1},y(),z(),A(),{random:+new Date}],e=d.length;b<e;b++)for(var f in d[b])d[b].hasOwnProperty(f)&&a.push(f+"="+(d[b][f]||""));c.params&&a.push(c.params);var a=Ta.src=("https:"==document.location.protocol?"https://pingtas.qq.com/webview":"http://pingtcss.qq.com")+"/pingd?"+a.join("&"),g=new Image;Ta[h.sid]=g;g.onload=g.onerror=g.onabort=function(){g=g.onload=g.onerror=g.onabort=null;Ta[h.sid]=!0};g.src=a;(1*!h.pf||h.hot.isValid)&&
B(a);h.logo&&255!=h.logo&&C(h.logo)}}function B(c){var a=window.location,b=a.host+a.pathname,d=a.pathname,e=function(){t(("https:"==document.location.protocol?"https://":"http://")+"tajs.qq.com/ping_hotclick_min.js",function(){window.hotclick&&(new hotclick(c)).watchClick()})};1*h.pf?(new RegExp(b)).test(h.hot.url)&&e():(a=h.sid,t("http://tcss.qq.com/heatmap/"+a%100+"/"+v(a)+".js?random="+ +new Date,function(){var a;if(window._Cnf&&(a=window._Cnf.url)){a=a.split("|");for(var b=0;b<a.length;b++)if(a[b]==
d){e();break}}}))}function C(c){var a={9:"\u817e\u8baf\u5206\u6790",10:"\u7f51\u7ad9\u7edf\u8ba1",df:'<img src="'+(("https:"==document.location.protocol?"https:":"http:")+"//tajs.qq.com/icon/toss_"+c+".gif")+'" border="0" />'};document.write(['<a href="http://ta.qq.com?ADTAG=FROUM.FOOTER.CLICK.ICON" title="\u817e\u8baf\u5206\u6790" target="_blank">',a[c]||a.df,"</a>"].join(""))}var k={afs:{key:1,id:"ssid",c_id:"pgv_afsid",fr:"hash"},afc:{key:2,id:"__tacid",c_id:"pgv_afcid",fr:"param"},gdt:{key:11,
id:"qz_gdt",c_id:"pgv_gdtid",fr:"param"}};n.taClick=function(c,a){var b=Ta.src.replace(/ext=[^&]*/,function(){return"ext="+("evtid"==a?"ty=0;evtid=":"clickid"==a?"ty=1;clickid=":"adid=")+c}).replace(/r2=([^&]*)/,function(b,c){return"r2="+("clickid"==a?"b":"a")+c});(new Image(1,1)).src=b};n.Ta=n.Ta||{};Ta.pgv=u;!Ta.async&&u(Ta.hack?Ta.hack():"")})({sid:"",pf:"",hot:{url:"",isValid:!1}},this);
如何查看自己网站的访问量

 

 

四,查看浏览量

根据浏览量,可实时的更改自己的网站,做出更符合大众口味的高端网站;

 

如何查看自己网站的访问量

上一篇:[CSP-S模拟测试51]题解


下一篇:optee 实现java->jni->ca->user ta