Skip to content

Commit

Permalink
add google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny0826 committed Dec 7, 2020
1 parent 15e4a96 commit a6920eb
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@
<link rel="icon" href="favicon.ico">
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/docsify/themes/vue.css">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/toc.css">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-FV886PTDEN"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-FV886PTDEN');
</script>
</head>

<body>
Expand Down Expand Up @@ -74,7 +83,6 @@
headings: 'h1, h2, h3, h4, h5, h6',
title: 'Table of Contents',
},
ga: 'G-FV886PTDEN',
plugins: [
function (hook) {
var footer = [
Expand Down Expand Up @@ -106,7 +114,6 @@
<script src="https://unpkg.com/docsify-plugin-flexible-alerts"></script>
<script src="//unpkg.com/docsify-fontawesome/dist/docsify-fontawesome.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/toc.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/ga.min.js"></script>
</body>

</html>

0 comments on commit a6920eb

Please sign in to comment.