29 lines
969 B
JavaScript
29 lines
969 B
JavaScript
/* ................... 谷歌分析 ................... */
|
|
(function (i, s, o, g, r, a, m) {
|
|
i["GoogleAnalyticsObject"] = r;
|
|
(i[r] =
|
|
i[r] ||
|
|
function () {
|
|
(i[r].q = i[r].q || []).push(arguments);
|
|
}),
|
|
(i[r].l = 1 * new Date());
|
|
(a = s.createElement(o)), (m = s.getElementsByTagName(o)[0]);
|
|
a.async = 1;
|
|
a.src = g;
|
|
m.parentNode.insertBefore(a, m);
|
|
})(window, document, "script", "/assets/js/common/GoogleAnaly.js", "ga");
|
|
ga("create", "UA-617548-1", "auto");
|
|
ga("send", "pageview");
|
|
/* .............. 百度搜索资源平台推送js代码 .............. */
|
|
(function () {
|
|
var bp = document.createElement("script");
|
|
var curProtocol = window.location.protocol.split(":")[0];
|
|
if (curProtocol === "https") {
|
|
bp.src = "https://zz.bdstatic.com/linksubmit/push.js";
|
|
} else {
|
|
bp.src = "http://push.zhanzhang.baidu.com/push.js";
|
|
}
|
|
var s = document.getElementsByTagName("script")[0];
|
|
s.parentNode.insertBefore(bp, s);
|
|
})();
|