📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
GSC - use v1/ project
Blue Mousecccceffb2511
diff --git a/web/app/api/index.ts b/web/app/api/index.tsindex aa319d82b..e7b8b5374 100644--- a/web/app/api/index.ts+++ b/web/app/api/index.ts@@ -1518,7 +1518,7 @@ export const completeOnboarding = () =>// Google Search Console integrationexport const generateGSCAuthURL = (pid: string) =>api- .post(`project/${pid}/gsc/connect`)+ .post(`v1/project/${pid}/gsc/connect`).then((response): { url: string } => response.data).catch((error) => {throw _isEmpty(error.response.data?.message) ? error.response.data : error.response.data.message@@ -1526,7 +1526,7 @@ export const generateGSCAuthURL = (pid: string) =>export const getGSCStatus = (pid: string) =>api- .get(`project/${pid}/gsc/status`)+ .get(`v1/project/${pid}/gsc/status`).then((response): { connected: boolean } => response.data).catch((error) => {throw _isEmpty(error.response.data?.message) ? error.response.data : error.response.data.message@@ -1534,7 +1534,7 @@ export const getGSCStatus = (pid: string) =>export const getGSCProperties = (pid: string) =>api- .get(`project/${pid}/gsc/properties`)+ .get(`v1/project/${pid}/gsc/properties`).then((response): { siteUrl: string; permissionLevel?: string }[] => response.data).catch((error) => {throw _isEmpty(error.response.data?.message) ? error.response.data : error.response.data.message@@ -1542,7 +1542,7 @@ export const getGSCProperties = (pid: string) =>export const setGSCProperty = (pid: string, propertyUri: string) =>api- .post(`project/${pid}/gsc/property`, { propertyUri })+ .post(`v1/project/${pid}/gsc/property`, { propertyUri }).then((response) => response.data).catch((error) => {throw _isEmpty(error.response.data?.message) ? error.response.data : error.response.data.message@@ -1550,7 +1550,7 @@ export const setGSCProperty = (pid: string, propertyUri: string) =>export const disconnectGSC = (pid: string) =>api- .delete(`project/${pid}/gsc`)+ .delete(`v1/project/${pid}/gsc`).then((response) => response.data).catch((error) => {throw _isEmpty(error.response.data?.message) ? error.response.data : error.response.data.message