Skip to content

Commit a6372e3

Browse files
committed
only turn on google analytics for production mode
1 parent abefa91 commit a6372e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ app.use(notivue) // Notifications
7777
app.use(
7878
VueGtag,
7979
{
80-
disableScriptLoad: import.meta.env.MODE === 'development', // Disable in dev mode
80+
disableScriptLoad: import.meta.env.MODE !== 'production', // Disable in dev mode
8181
pageTrackerExcludedRoutes: ['recruit'], // Exclude recruit route
8282
config: { id: import.meta.env.VITE_GOOGLE_ANALYTICS },
8383
},

0 commit comments

Comments
 (0)