Skip to content

Commit 21d1c7a

Browse files
added google analytics
1 parent 87807bf commit 21d1c7a

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

_config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ logo: https://jsdevtools.org/img/logos/logo.png
66
author:
77
twitter: JS_DevTools
88

9+
google_analytics: UA-68102273-3
10+
911
twitter:
1012
username: JS_DevTools
1113
card: summary

index.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
<head>
44
<meta http-equiv="refresh" content="0; url=https://github.com/JS-DevTools">
55

6+
<!-- Google Analytics -->
7+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-68102273-3"></script>
8+
<script>
9+
window.dataLayer = window.dataLayer || [];
10+
function gtag(){dataLayer.push(arguments);}
11+
gtag('js', new Date());
12+
gtag('config', 'UA-68102273-3');
13+
</script>
14+
615
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
716
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
817
</head>

0 commit comments

Comments
 (0)