Skip to content

Commit

Permalink
Website: Add GA manually for now
Browse files Browse the repository at this point in the history
Docsify GA plugin seems to be broken:

- docsifyjs/docsify#1695
- docsifyjs/docsify#1702
  • Loading branch information
andreynering committed May 9, 2022
1 parent efcfab0 commit 4576ba4
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 @@ -25,6 +25,15 @@
--theme-color: #29beb0;
}
</style>

<script async src="https://www.googletagmanager.com/gtag/js?id=G-4RT25NXQ7N"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-4RT25NXQ7N');
</script>
</head>
<body>
<div id="app"></div>
Expand All @@ -33,7 +42,6 @@
name: 'Task',
repo: 'go-task/task',
logo: 'Logo.png',
ga: 'G-4RT25NXQ7N',
themeColor: '#29beb0',
loadSidebar: true,
auto2top: true,
Expand All @@ -47,6 +55,5 @@
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-bash.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-yaml.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/ga.min.js"></script>
</body>
</html>

0 comments on commit 4576ba4

Please sign in to comment.