Skip to content

Commit bda825e

Browse files
author
pooya parsa
committed
feat: support googleAnalytics in nuxt.config
1 parent 860a27c commit bda825e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
['@nuxtjs/google-analytics']
3636
],
3737

38-
'google-analytics': {
38+
googleAnalytics: {
3939
id: 'UA-12301-2'
4040
}
4141
}

lib/module.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ function analyticsModule(moduleOptions) {
77
sendHitTask: undefined
88
},
99
...this.options['google-analytics'],
10+
...this.options.googleAnalytics,
1011
...moduleOptions
1112
}
1213

0 commit comments

Comments
 (0)