mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Merge pull request #600 from appwrite/feat-remove-google-analytics
feat: remove google analytics
This commit is contained in:
@@ -26,7 +26,6 @@ async function main() {
|
||||
logEnv('CONSOLE MODE', env?.VITE_CONSOLE_MODE);
|
||||
logEnv('APPWRITE ENDPOINT', env?.VITE_APPWRITE_ENDPOINT, 'relative');
|
||||
logEnv('GROWTH ENDPOINT', env?.VITE_APPWRITE_GROWTH_ENDPOINT);
|
||||
logEnv('GOOGLE ANALYTICS', env?.VITE_GA_PROJECT);
|
||||
log();
|
||||
logDelimiter();
|
||||
await build();
|
||||
|
||||
Generated
-12
@@ -6,8 +6,6 @@
|
||||
"": {
|
||||
"name": "@appwrite/console",
|
||||
"dependencies": {
|
||||
"@analytics/google-analytics": "^1.0.7",
|
||||
"@analytics/google-tag-manager": "^0.5.5",
|
||||
"@appwrite.io/console": "^0.3.0",
|
||||
"@appwrite.io/pink": "0.1.0-next.9",
|
||||
"@appwrite.io/pink-icons": "^0.1.0-next.9",
|
||||
@@ -124,16 +122,6 @@
|
||||
"@analytics/type-utils": "^0.6.2"
|
||||
}
|
||||
},
|
||||
"node_modules/@analytics/google-analytics": {
|
||||
"version": "1.0.7",
|
||||
"resolved": "https://registry.npmjs.org/@analytics/google-analytics/-/google-analytics-1.0.7.tgz",
|
||||
"integrity": "sha512-KZ69NaMIi5kOcouzqI8cu7tZgQl7ziGiRahfU6zniUf32G8bv7wQDh73JFz1NwO6gBPloUc+5BzEoWzScM5Rgw=="
|
||||
},
|
||||
"node_modules/@analytics/google-tag-manager": {
|
||||
"version": "0.5.5",
|
||||
"resolved": "https://registry.npmjs.org/@analytics/google-tag-manager/-/google-tag-manager-0.5.5.tgz",
|
||||
"integrity": "sha512-bYTzseT3DRwMhkWr0+zJH6BHdk5FDZv1TqU5dHseh60zf/sl3LlWUbb8Lgl41LAOmA2Qy1frJXr3mIO1Tak8Yg=="
|
||||
},
|
||||
"node_modules/@analytics/localstorage-utils": {
|
||||
"version": "0.1.10",
|
||||
"resolved": "https://registry.npmjs.org/@analytics/localstorage-utils/-/localstorage-utils-0.1.10.tgz",
|
||||
|
||||
@@ -18,8 +18,6 @@
|
||||
"e2e": "playwright test tests/e2e"
|
||||
},
|
||||
"dependencies": {
|
||||
"@analytics/google-analytics": "^1.0.7",
|
||||
"@analytics/google-tag-manager": "^0.5.5",
|
||||
"@appwrite.io/console": "^0.3.0",
|
||||
"@appwrite.io/pink": "0.1.0-next.9",
|
||||
"@appwrite.io/pink-icons": "^0.1.0-next.9",
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
import Analytics, { type AnalyticsPlugin } from 'analytics';
|
||||
import googleAnalytics from '@analytics/google-analytics';
|
||||
import googleTagManager from '@analytics/google-tag-manager';
|
||||
import Plausible from 'plausible-tracker';
|
||||
import { get } from 'svelte/store';
|
||||
import { page } from '$app/stores';
|
||||
@@ -49,19 +47,7 @@ const PLAUSIBLE_DOMAINS = {
|
||||
|
||||
const analytics = Analytics({
|
||||
app: 'appwrite',
|
||||
plugins: isCloud
|
||||
? [
|
||||
plausible(PLAUSIBLE_DOMAINS.CLOUD),
|
||||
googleTagManager({
|
||||
containerId: [VARS.GOOGLE_TAG || 'GTM-P3T9TBV']
|
||||
})
|
||||
]
|
||||
: [
|
||||
plausible(PLAUSIBLE_DOMAINS.SELF_HOSTED),
|
||||
googleAnalytics({
|
||||
measurementIds: [VARS.GOOGLE_ANALYTICS || 'G-R4YJ9JN8L4']
|
||||
})
|
||||
]
|
||||
plugins: [plausible(isCloud ? PLAUSIBLE_DOMAINS.CLOUD : PLAUSIBLE_DOMAINS.SELF_HOSTED)]
|
||||
});
|
||||
|
||||
export function trackEvent(name: string, data: object = null): void {
|
||||
|
||||
+1
-3
@@ -8,9 +8,7 @@ export const VARS = {
|
||||
GROWTH_ENDPOINT: import.meta.env?.VITE_APPWRITE_GROWTH_ENDPOINT?.toString() as
|
||||
| string
|
||||
| undefined,
|
||||
CONSOLE_MODE: import.meta.env?.VITE_CONSOLE_MODE?.toString() as string | undefined,
|
||||
GOOGLE_ANALYTICS: import.meta.env?.VITE_GA_PROJECT?.toString() as string | undefined,
|
||||
GOOGLE_TAG: import.meta.env?.VITE_GTM_PROJECT?.toString() as string | undefined
|
||||
CONSOLE_MODE: import.meta.env?.VITE_CONSOLE_MODE?.toString() as string | undefined
|
||||
};
|
||||
|
||||
export const ENV = {
|
||||
|
||||
Reference in New Issue
Block a user