Google Search Console - v1.0.0
Environment Variables
The package reads exactly one env var. Everything else lives in config/google-search-console.php (see Configuration).
GSC_SITE_URL
- Required
- Read by:
reporting.site_urlin the config file. - Type:
string - No default — must be set for the reporting side to work.
The verified Search Console property this app queries.
# URL property — trailing slash required
GSC_SITE_URL="https://example.com/"
# Domain property — sc-domain: prefix, no scheme, no slash
GSC_SITE_URL="sc-domain:example.com"
The string must literally match a property Google Search Console reports for the connected account. Trailing slashes, http vs https, and the sc-domain: prefix all matter. See property verification.
For multi-tenant apps this env var is a footgun — one config value can't scope per-tenant safely. Override the SearchAnalyticsClient binding in your tenant middleware instead (Reporting#Multi-tenant apps).
Env vars this package does not use
The following env vars are read by dependent packages, not this one — listing them here to save a source dive:
| Env var | Belongs to | Purpose |
|---|---|---|
GOOGLE_CLIENT_ID / GOOGLE_CLIENT_SECRET / GOOGLE_REDIRECT_URI |
artisanpack-ui/google |
The OAuth client credentials. |
GOOGLE_CONFIG_DRIVER |
artisanpack-ui/google |
Which credential driver stores the OAuth client. |
APP_KEY |
Laravel | Encrypts the access/refresh tokens on google_connections. |
CACHE_STORE (or CACHE_DRIVER on older Laravel) |
Laravel | Backing store for the SearchAnalyticsClient response cache. |
SESSION_DRIVER |
Laravel | Session store for the base package's OAuth flow. Not used by this package. |
If you're seeing a "credentials are not configured" error at /google/auth/connect, that's the base package — see the base package's FAQ.