Skip to content

Commit a819584

Browse files
committed
Create head-custom
1 parent af185fc commit a819584

File tree

2 files changed

+48
-50
lines changed

2 files changed

+48
-50
lines changed

_includes/footer.html

Lines changed: 0 additions & 50 deletions
This file was deleted.

_includes/head-custom.html

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<!-- Head-Custom -->
2+
<!-- async load function -->
3+
<script>
4+
function async(u, c) {
5+
var d = document,
6+
t = "script",
7+
o = d.createElement(t),
8+
s = d.getElementsByTagName(t)[0];
9+
o.src = u;
10+
if (c) {
11+
o.addEventListener(
12+
"load",
13+
function (e) {
14+
c(null, e);
15+
},
16+
false
17+
);
18+
}
19+
s.parentNode.insertBefore(o, s);
20+
}
21+
</script>
22+
23+
<!-- Google Analytics -->
24+
<!-- Google tag (gtag.js) -->
25+
<script
26+
async
27+
src="https://www.googletagmanager.com/gtag/js?id=G-2JC8CKTNKY"
28+
></script>
29+
<script>
30+
window.dataLayer = window.dataLayer || [];
31+
function gtag() {
32+
dataLayer.push(arguments);
33+
}
34+
gtag("js", new Date());
35+
36+
gtag("config", "G-2JC8CKTNKY");
37+
</script>
38+
39+
<!-- Baidu Tongji -->
40+
<script>
41+
var _hmt = _hmt || [];
42+
(function () {
43+
var hm = document.createElement("script");
44+
hm.src = "https://hm.baidu.com/hm.js?1f5057d4e4d6ad127da0662b8617f303";
45+
var s = document.getElementsByTagName("script")[0];
46+
s.parentNode.insertBefore(hm, s);
47+
})();
48+
</script>

0 commit comments

Comments
 (0)