1
0
mirror of https://github.com/go-task/task.git synced 2025-01-14 04:35:50 +02:00

Website: Add GA manually for now

Docsify GA plugin seems to be broken:

- https://github.com/docsifyjs/docsify/issues/1695
- https://github.com/docsifyjs/docsify/pull/1702
This commit is contained in:
Andrey Nering 2022-05-09 11:06:47 -03:00
parent efcfab0955
commit 4576ba4db0

View File

@ -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>
@ -33,7 +42,6 @@
name: 'Task',
repo: 'go-task/task',
logo: 'Logo.png',
ga: 'G-4RT25NXQ7N',
themeColor: '#29beb0',
loadSidebar: true,
auto2top: true,
@ -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>