📈 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
Format
Blue Mouse7d8f61c3d501
diff --git a/docs/content/docs/selfhosting/configuring.mdx b/docs/content/docs/selfhosting/configuring.mdxindex dbe185768..5538882a9 100644--- a/docs/content/docs/selfhosting/configuring.mdx+++ b/docs/content/docs/selfhosting/configuring.mdx@@ -28,7 +28,7 @@ The `BASE_URL` must be publicly reachable from your users' browsers. Do not set| Variable | Default | Description || ------------------------------------ | ---------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- || `SECRET_KEY_BASE` | _auto-generated by `configure.sh`_ | Secret used for auth keys and login sessions. Must be set. |-| `BASE_URL` | | Public URL of your Swetrix CE instance, e.g. `https://analytics.example.com`. Used by the API to build the OAuth redirect URI for the [Google Search Console integration](/selfhosting/google-search-console). Required to enable that integration. |+| `BASE_URL` | | Public URL of your Swetrix CE instance, e.g. `https://analytics.example.com`. Used by the API to build the OAuth redirect URI for the [Google Search Console integration](/selfhosting/google-search-console). Required to enable that integration. || `CLIENT_IP_HEADER` | `null` | Defines what header should be used to get IP address (e.g. cf-connecting-ip, x-real-ip, etc.). If not set, Swetrix will use `x-forwarded-for` header. || `DISABLE_REGISTRATION` | `true` | When set to `true` - Swetrix will disable user registration, except for the initial user. || `IP_GEOLOCATION_DB_PATH` | `` | Path to the `.mmdb` file for IP geolocation database. By default Swetrix uses the IP to City Lite database by DB-IP, which provides country / region / city only. To populate the **Network intelligence** panel (ISP, organisation, usage type, connection type), point this at a paid MaxMind GeoIP2 ISP / Insights database or a paid DB-IP database that includes those fields. |@@ -54,10 +54,10 @@ If you don't have an SMTP provider, some regular email providers offer this funcTo let users connect their Google Search Console account from project settings (and populate the SEO dashboard), the API needs an OAuth client created in your own Google Cloud project. The full step-by-step guide lives in [Google Search Console](/selfhosting/google-search-console); the relevant variables are:-| Variable | Default | Description |-| -------------------------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| `GOOGLE_GSC_CLIENT_ID` | | OAuth 2.0 Client ID issued by the Google Cloud console for your Swetrix instance. |-| `GOOGLE_GSC_CLIENT_SECRET` | | OAuth 2.0 Client secret matching `GOOGLE_GSC_CLIENT_ID`. |+| Variable | Default | Description |+| -------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |+| `GOOGLE_GSC_CLIENT_ID` | | OAuth 2.0 Client ID issued by the Google Cloud console for your Swetrix instance. |+| `GOOGLE_GSC_CLIENT_SECRET` | | OAuth 2.0 Client secret matching `GOOGLE_GSC_CLIENT_ID`. || `BASE_URL` | | Public URL of your Swetrix CE instance. The API uses `${BASE_URL}/gsc-connected` as the OAuth redirect URI; it must match the URI registered in the Google Cloud console. |If any of these are unset the SEO tab still shows up but the integrations card displays a "not configured" notice instead of the **Connect** button.diff --git a/docs/content/docs/selfhosting/google-search-console.mdx b/docs/content/docs/selfhosting/google-search-console.mdxindex 0f7cc9f7f..927047958 100644--- a/docs/content/docs/selfhosting/google-search-console.mdx+++ b/docs/content/docs/selfhosting/google-search-console.mdx@@ -8,7 +8,8 @@ Swetrix Community Edition can integrate with Google Search Console (GSC) to poweThis guide walks you through everything you need to do once.<Callout type="info">-Already have a Google Cloud project with an OAuth consent screen and a verified Search Console property? Skip to [Issue an OAuth client](#issue-an-oauth-client-and-secret).+ Already have a Google Cloud project with an OAuth consent screen and a verified Search Console+ property? Skip to [Issue an OAuth client](#issue-an-oauth-client-and-secret).</Callout>## What you'll set up