Skip to content

Commit 8e5a636

Browse files
committed
GA fix for SSR
1 parent 88eb0a4 commit 8e5a636

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)