Skip to content
This repository has been archived by the owner on Mar 18, 2023. It is now read-only.

Commit

Permalink
Added google analytics support
Browse files Browse the repository at this point in the history
  • Loading branch information
hussnain612 committed Jul 26, 2022
1 parent a4fbf61 commit 67ea098
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
26 changes: 20 additions & 6 deletions .vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,31 @@
module.exports = {
title: "Stakater App Agility Platform Documentation",
description: "Stakater App Agility Platform Documentation",
head: [["link", { rel: "icon", href: "/favicon.png" }]],
head: [
["link", { rel: "icon", href: "/favicon.png" }],
// Google analytics plugin is not supported for G-XXXXXXXX format
// https://github.com/vuejs/vuepress/issues/2713
[
'script',
{
async: true,
src: 'https://www.googletagmanager.com/gtag/js?id=G-TTH1YYW5TX',
},
],
[
'script',
{},
[
"window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());\ngtag('config', 'G-TTH1YYW5TX');",
],
],
],
plugins: [
[
"@vuepress/active-header-links",
"@vuepress/medium-zoom",
"@vuepress/back-to-top",
"vuepress-plugin-container",
'@vuepress/google-analytics',
{
'ga': 'G-TTH1YYW5TX'
}
"vuepress-plugin-container"
],
],
markdown: {
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
"@textlint-rule/textlint-rule-no-unmatched-pair": "^1.0.7",
"@vuepress/plugin-active-header-links": "^1.8.0",
"@vuepress/plugin-back-to-top": "1.8.0",
"@vuepress/plugin-google-analytics": "^1.9.7",
"@vuepress/plugin-medium-zoom": "1.8.0",
"@vuepress/theme-vue": "1.8.0",
"remark-cli": "^9.0.0",
Expand Down

0 comments on commit 67ea098

Please sign in to comment.