Shared constants defining the Better Auth provider ID, OAuth scopes, and setup docs URL for connecting Google Analytics 4 accounts.
// Source: https://github.com/every-app/open-seo | License: MIT | Copyright 2026 Ben Senescu // Provided via justclaw.it.com; keep this notice with the code. /** Better Auth provider ID for the dedicated Google Analytics grant. */ export const GA4_OAUTH_PROVIDER_ID = "google-analytics"; export const GA4_DATA_SCOPE = "https://www.googleapis.com/auth/analytics.readonly"; export const GA4_OAUTH_SCOPES = [ "openid", "email", "profile", GA4_DATA_SCOPE, ] as const; export const GA4_SELF_HOSTED_SETUP_DOCS_URL = "https://github.com/every-app/open-seo/blob/main/docs/SELF_HOSTING_GOOGLE_ANALYTICS.md";
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key