imported>Gaobo 无编辑摘要 |
imported>Gaobo 无编辑摘要 |
||
第1行: | 第1行: | ||
/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */ | /* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */ | ||
// 1. Google | |||
jQuery.ajax({ | jQuery.ajax({ | ||
async: true, | async: true, | ||
第11行: | 第13行: | ||
gtag('config', 'UA-20495355-1'); | gtag('config', 'UA-20495355-1'); | ||
// 2. 51.la | |||
jQuery.getScript('//js.users.51.la/17593331.js'); | jQuery.getScript('//js.users.51.la/17593331.js'); | ||
// 3. 百度 | |||
jQuery.getScript('//zz.bdstatic.com/linksubmit/push.js'); | jQuery.getScript('//zz.bdstatic.com/linksubmit/push.js'); | ||
// 4. 奇虎 | |||
(function(){ | (function(){ | ||
var src = (document.location.protocol == "http:") ? "http://js.passport.qihucdn.com/11.0.1.js?cb1ed2f19627e224ba78157e1d1b3bfd":"https://jspassport.ssl.qhimg.com/11.0.1.js?cb1ed2f19627e224ba78157e1d1b3bfd"; | var src = (document.location.protocol == "http:") ? "http://js.passport.qihucdn.com/11.0.1.js?cb1ed2f19627e224ba78157e1d1b3bfd":"https://jspassport.ssl.qhimg.com/11.0.1.js?cb1ed2f19627e224ba78157e1d1b3bfd"; | ||
第20行: | 第25行: | ||
})(); | })(); | ||
// 5. 美洽 | |||
(function(m, ei, q, i, a, j, s) { | (function(m, ei, q, i, a, j, s) { | ||
m[i] = m[i] || function() { | m[i] = m[i] || function() { |
2018年2月24日 (六) 21:13的版本
/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */
// 1. Google
jQuery.ajax({
async: true,
url: "https://www.googletagmanager.com/gtag/js?id=UA-20495355-1",
dataType: "script"
});
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-20495355-1');
// 2. 51.la
jQuery.getScript('//js.users.51.la/17593331.js');
// 3. 百度
jQuery.getScript('//zz.bdstatic.com/linksubmit/push.js');
// 4. 奇虎
(function(){
var src = (document.location.protocol == "http:") ? "http://js.passport.qihucdn.com/11.0.1.js?cb1ed2f19627e224ba78157e1d1b3bfd":"https://jspassport.ssl.qhimg.com/11.0.1.js?cb1ed2f19627e224ba78157e1d1b3bfd";
document.write('<script src="' + src + '" id="sozz"><\/script>');
})();
// 5. 美洽
(function(m, ei, q, i, a, j, s) {
m[i] = m[i] || function() {
(m[i].a = m[i].a || []).push(arguments)
};
j = ei.createElement(q),
s = ei.getElementsByTagName(q)[0];
j.async = true;
j.charset = 'UTF-8';
j.src = '//static.meiqia.com/dist/meiqia.js';
s.parentNode.insertBefore(j, s);
})(window, document, 'script', '_MEIQIA');
_MEIQIA('entId', 38299);