Skip to content

Universal SEO skill for Claude Code. 26 sub-skills + 19 sub-agents covering technical SEO, E-E-A-T, schema, GEO/AEO, agent readiness (Lighthouse Agentic Browsing, WebMCP, llms.txt), backlinks, local SEO, e-commerce, international SEO, Google APIs, and PDF/Excel reporting. 9 optional extensions for live SEO data.

fix(ga4): use the REST transport for the Analytics Data client

Łukasz Ciołecki79a77539a339
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ca9aacd..3282543 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+### Fixed
+
+- `ga4_report.py` failed in the Claude Code sandbox on macOS. Its gRPC
+ client connects to the sandbox's HTTP proxy through a dual-stack IPv6
+ socket (`::ffff:127.0.0.1`), which the sandbox refuses with
+ `Operation not permitted`. The GA4 client now uses the REST transport.
+
## [2.4.2] - 2026-10-04
seo-cockpit, Google sign-in through your own account, and a schema-hook fix.
diff --git a/scripts/ga4_report.py b/scripts/ga4_report.py
index 0c36887..272a967 100644
--- a/scripts/ga4_report.py
+++ b/scripts/ga4_report.py
@@ -51,7 +51,9 @@ def _build_ga4_client():
if not credentials:
return None
try:
- return BetaAnalyticsDataClient(credentials=credentials)
+ # gRPC reaches an HTTP proxy through a dual-stack IPv6 socket, which the
+ # macOS sandbox refuses; REST connects over plain IPv4.
+ return BetaAnalyticsDataClient(credentials=credentials, transport="rest")
except Exception as e:
print(f"Error building GA4 client: {e}", file=sys.stderr)
return None