Skip to content

Commit

Permalink
feat: add GA & Sentry & Hotjar
Browse files Browse the repository at this point in the history
  • Loading branch information
VisionYi committed Mar 1, 2021
1 parent c949806 commit ad5da76
Show file tree
Hide file tree
Showing 4 changed files with 283 additions and 3 deletions.
13 changes: 12 additions & 1 deletion nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export default {

// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: [
{ src: '@/plugins/vue-gtag.js', mode: 'client' },
'@/plugins/vue-lazyload.js',
'@/plugins/axios.js',
],
Expand All @@ -63,8 +64,12 @@ export default {

// Modules: https://go.nuxtjs.dev/config-modules
modules: [
// https://go.nuxtjs.dev/axios
'@nuxtjs/axios',
'@nuxtjs/sentry',
['@netsells/nuxt-hotjar', {
id: process.env.NUXT_ENV_HOTJAR_ID || '',
sv: '6',
}],
],

router: {
Expand All @@ -76,6 +81,12 @@ export default {
fallback: true
},

sentry: {
dsn: process.env.SENTRY_DSN || '',
disabled: process.env.SENTRY_DISABLED === 'true' || false,
tracing: true,
},

// Axios module configuration: https://go.nuxtjs.dev/config-axios
axios: {},

Expand Down
256 changes: 254 additions & 2 deletions package-lock.json

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

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@
"build-storybook": "nuxt storybook build"
},
"dependencies": {
"@netsells/nuxt-hotjar": "^0.1.3",
"@nuxtjs/axios": "^5.12.5",
"@nuxtjs/sentry": "^5.0.2",
"core-js": "^3.8.3",
"nuxt": "^2.15.1",
"tailwindcss-question-mark": "^0.1.0",
"video.js": "^7.11.4",
"videojs-contrib-hls": "^5.15.0",
"vue-gtag": "^1.11.0",
"vue-lazyload": "^1.3.3"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit ad5da76

Please sign in to comment.