Skip to content

Commit

Permalink
add analytics to documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
fabio-ivona committed Mar 1, 2022
1 parent 30280f4 commit ef89ea1
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 13 deletions.
25 changes: 14 additions & 11 deletions docs/nuxt.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
import theme from '@nuxt/content-theme-docs'

export default theme({
docs: {
primaryColor: '#1093ff'
},
target: 'static',
content: {
liveEdit: false
},
router: {
base: '/telegraph'
}
})
docs: {
primaryColor: '#1093ff'
},
target: 'static',
content: {
liveEdit: false
},
router: {
base: '/telegraph'
},
buildModules: [
['@nuxtjs/google-analytics', {id: 'G-V0R3GDCRFP'}]
]
});
36 changes: 34 additions & 2 deletions docs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"nuxt": "^2.15.2"
},
"devDependencies": {
"@nuxtjs/google-analytics": "^2.4.0",
"push-dir": "^0.4.1"
}
}

0 comments on commit ef89ea1

Please sign in to comment.