Skip to content

Commit aa77076

Browse files
authored
Merge pull request #1101 from pkarw/master
GA fix for SSR
2 parents 50bca59 + 8e5a636 commit aa77076

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extensions/google-analytics/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default function (app, router, store, config) {
1212
store.registerModule(EXTENSION_KEY, extensionStore)
1313
console.log('Google Analytics extension registered')
1414

15-
if (config.analytics.id) {
15+
if (config.analytics.id && !global.$VS.isSSR) {
1616
Vue.use(VueAnalytics, {
1717
id: config.analytics.id,
1818
router,

0 commit comments

Comments
 (0)