mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: google analytics initialization
This commit is contained in:
1 parent
7b5fbd25ad
commit
ca5cecac9d
2 files changed
+1
-2
No files matched your search
@@ -7,7 +7,7 @@ const analytics = Analytics({
|
||||
app: 'appwrite',
|
||||
plugins: [
|
||||
googleAnalytics({
|
||||
measurementIds: [window?.GOOGLE_ANALYTICS]
|
||||
measurementIds: [import.meta.env.VITE_GOOGLE_ANALYTICS?.toString()]
|
||||
})
|
||||
]
|
||||
});
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
|
||||
if (browser) {
|
||||
window.VERCEL_ANALYTICS_ID = import.meta.env.VERCEL_ANALYTICS_ID?.toString() ?? false;
|
||||
window.GOOGLE_ANALYTICS = import.meta.env.VITE_GOOGLE_ANALYTICS?.toString() ?? false;
|
||||
window.SENTRY_DSN = import.meta.env.VITE_SENTRY_DSN?.toString() ?? false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user