Skip to content

Commit

Permalink
add Google Analytics to docs website
Browse files Browse the repository at this point in the history
  • Loading branch information
abbasudo committed Jun 14, 2024
1 parent dae8a8f commit 6194d12
Show file tree
Hide file tree
Showing 4 changed files with 352 additions and 694 deletions.
Binary file modified bun.lockb
Binary file not shown.
8 changes: 7 additions & 1 deletion docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {defaultTheme} from '@vuepress/theme-default'
import {defineUserConfig} from 'vuepress/cli'
import {viteBundler} from '@vuepress/bundler-vite'
import {searchPlugin} from "@vuepress/plugin-search";
import {googleAnalyticsPlugin} from "@vuepress/plugin-google-analytics";

export default defineUserConfig({
lang: 'en-US',
Expand Down Expand Up @@ -64,7 +65,12 @@ export default defineUserConfig({
docsRepo: 'abbasudo/laravel-purity',
docsDir: 'docs',
}),
plugins: [searchPlugin({}),],
plugins: [
searchPlugin({}),
googleAnalyticsPlugin({
id: 'G-C75TGXT64W',
}),
],
head: [['link', { rel: 'icon', href: '/laravel-purity/images/favicon.ico' }]],
bundler: viteBundler(),
})
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
},
"devDependencies": {
"@vuepress/bundler-vite": "^2.0.0-rc.7",
"@vuepress/plugin-google-analytics": "^2.0.0-rc.34",
"@vuepress/plugin-search": "^2.0.0-rc.34",
"@vuepress/theme-default": "^2.0.0-rc.35",
"vue": "^3.4.27",
"vue": "^3.4.29",
"vuepress": "^2.0.0-rc.13"
}
}
Loading

0 comments on commit 6194d12

Please sign in to comment.