1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

add google analytics

This commit is contained in:
checktheroads
2020-03-01 00:21:30 -07:00
parent a1ff804355
commit 032bd082d5
3 changed files with 31 additions and 6 deletions

View File

@@ -1,5 +1,7 @@
const githubURL = "https://github.com/checktheroads/hyperglass";
const { googleTrackingId } = process.env;
module.exports = {
title: "hyperglass",
tagline: "the network looking glass that tries to make the internet better.",
@@ -9,12 +11,12 @@ module.exports = {
organizationName: "checktheroads",
projectName: "hyperglass",
themeConfig: {
googleAnalytics: { trackingID: googleTrackingId || " ", anonymizeIP: false },
gtag: {
trackingID: googleTrackingId || " ",
anonymizeIP: false
},
navbar: {
// title: "hyperglass",
// logo: {
// alt: "hyperglass icon",
// src: "img/icon.svg"
// },
links: [
{ to: "docs/introduction", label: "Docs", position: "left" },
{ to: "screenshots", label: "Screenshots", position: "left" },
@@ -87,5 +89,10 @@ module.exports = {
}
}
]
],
plugins: [
"@docusaurus/plugin-google-analytics",
"@docusaurus/plugin-google-gtag",
"@docusaurus/plugin-sitemap"
]
};