Skip to content

Commit 030b43e

Browse files
committed
website: add google analytics
1 parent 659a380 commit 030b43e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

website/themes/moderncpp/layout/layout.ejs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@
1010
<link rel="shortcut icon" type="image/x-icon" href="/modern-cpp/assets/cover-2nd.png">
1111
<meta name="msapplication-TileColor" content="#7e2d36">
1212
<meta name="theme-color" content="#7e2d36">
13+
<!-- Global site tag (gtag.js) - Google Analytics -->
14+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-80889616-2"></script>
15+
<script>
16+
window.dataLayer = window.dataLayer || [];
17+
function gtag(){dataLayer.push(arguments);}
18+
gtag('js', new Date());
19+
20+
gtag('config', 'UA-80889616-2');
21+
</script>
1322

1423
<link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600|Roboto Mono' rel='stylesheet' type='text/css'>
1524
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">

0 commit comments

Comments
 (0)