Skip to content

Commit

Permalink
feat: support googleAnalytics in nuxt.config
Browse files Browse the repository at this point in the history
  • Loading branch information
pooya parsa committed Feb 17, 2019
1 parent 860a27c commit bda825e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
['@nuxtjs/google-analytics']
],

'google-analytics': {
googleAnalytics: {
id: 'UA-12301-2'
}
}
Expand Down
1 change: 1 addition & 0 deletions lib/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ function analyticsModule(moduleOptions) {
sendHitTask: undefined
},
...this.options['google-analytics'],
...this.options.googleAnalytics,
...moduleOptions
}

Expand Down

0 comments on commit bda825e

Please sign in to comment.