Skip to content

Commit

Permalink
Add google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
jolaleye committed Apr 17, 2019
1 parent 07b867b commit 443c377
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 12 deletions.
11 changes: 10 additions & 1 deletion nuxt.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
export default {
css: ['~/assets/main.css'],
plugins: ['~/plugins/highlight.js', '~/plugins/clipboard.js']
plugins: ['~/plugins/highlight.js', '~/plugins/clipboard.js'],
modules: [
[
'@nuxtjs/google-analytics',
{
id: 'UA-129681195-4',
dev: false
}
]
]
};
54 changes: 43 additions & 11 deletions 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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"gen": "nuxt generate"
},
"dependencies": {
"@nuxtjs/google-analytics": "^2.2.0",
"highlight.js": "^9.15.6",
"nuxt": "^2.6.1",
"v-clipboard": "^2.2.2",
Expand Down

0 comments on commit 443c377

Please sign in to comment.