{
  "schemaVersion": "1.0",
  "item": {
    "slug": "ga4",
    "name": "GA4 Analytics",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/jdrhyne/ga4",
    "canonicalUrl": "https://clawhub.ai/jdrhyne/ga4",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/ga4",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=ga4",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "_meta.json",
      "scripts/ga4_auth.py",
      "scripts/ga4_query.py"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/ga4"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/ga4",
    "agentPageUrl": "https://openagent3.xyz/skills/ga4/agent",
    "manifestUrl": "https://openagent3.xyz/skills/ga4/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/ga4/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "GA4 - Google Analytics 4 Data API",
        "body": "Query GA4 properties for analytics data: page views, sessions, users, traffic sources, conversions, and more."
      },
      {
        "title": "Setup (one-time)",
        "body": "Enable Google Analytics Data API: https://console.cloud.google.com/apis/library/analyticsdata.googleapis.com\nCreate OAuth credentials or use existing Google Cloud project\nSet environment variables:\n\nGA4_PROPERTY_ID - Your GA4 property ID (numeric, e.g., \"123456789\")\nGOOGLE_CLIENT_ID - OAuth client ID\nGOOGLE_CLIENT_SECRET - OAuth client secret\nGOOGLE_REFRESH_TOKEN - OAuth refresh token (from initial auth flow)"
      },
      {
        "title": "Safety Boundaries",
        "body": "This skill only connects to Google Analytics Data API endpoints.\nIt does NOT write to or modify your GA4 property — read-only queries only.\nIt does NOT store or transmit credentials beyond the current session.\nIt requires OAuth credentials (client ID, secret, refresh token) set as environment variables."
      },
      {
        "title": "Top Pages (by pageviews)",
        "body": "python3 scripts/ga4_query.py --metric screenPageViews --dimension pagePath --limit 30"
      },
      {
        "title": "Top Pages with Sessions & Users",
        "body": "python3 scripts/ga4_query.py --metrics screenPageViews,sessions,totalUsers --dimension pagePath --limit 20"
      },
      {
        "title": "Traffic Sources",
        "body": "python3 scripts/ga4_query.py --metric sessions --dimension sessionSource --limit 20"
      },
      {
        "title": "Landing Pages",
        "body": "python3 scripts/ga4_query.py --metric sessions --dimension landingPage --limit 30"
      },
      {
        "title": "Custom Date Range",
        "body": "python3 scripts/ga4_query.py --metric sessions --dimension pagePath --start 2026-01-01 --end 2026-01-15"
      },
      {
        "title": "Filter by Page Path",
        "body": "python3 scripts/ga4_query.py --metric screenPageViews --dimension pagePath --filter \"pagePath=~/blog/\""
      },
      {
        "title": "Available Metrics",
        "body": "Common metrics: screenPageViews, sessions, totalUsers, newUsers, activeUsers, bounceRate, averageSessionDuration, conversions, eventCount"
      },
      {
        "title": "Available Dimensions",
        "body": "Common dimensions: pagePath, pageTitle, landingPage, sessionSource, sessionMedium, sessionCampaignName, country, city, deviceCategory, browser, date"
      },
      {
        "title": "Output Formats",
        "body": "Default: Table format\nAdd --json for JSON output\nAdd --csv for CSV output"
      }
    ],
    "body": "GA4 - Google Analytics 4 Data API\n\nQuery GA4 properties for analytics data: page views, sessions, users, traffic sources, conversions, and more.\n\nSetup (one-time)\nEnable Google Analytics Data API: https://console.cloud.google.com/apis/library/analyticsdata.googleapis.com\nCreate OAuth credentials or use existing Google Cloud project\nSet environment variables:\nGA4_PROPERTY_ID - Your GA4 property ID (numeric, e.g., \"123456789\")\nGOOGLE_CLIENT_ID - OAuth client ID\nGOOGLE_CLIENT_SECRET - OAuth client secret\nGOOGLE_REFRESH_TOKEN - OAuth refresh token (from initial auth flow)\nSafety Boundaries\nThis skill only connects to Google Analytics Data API endpoints.\nIt does NOT write to or modify your GA4 property — read-only queries only.\nIt does NOT store or transmit credentials beyond the current session.\nIt requires OAuth credentials (client ID, secret, refresh token) set as environment variables.\nCommon Queries\nTop Pages (by pageviews)\npython3 scripts/ga4_query.py --metric screenPageViews --dimension pagePath --limit 30\n\nTop Pages with Sessions & Users\npython3 scripts/ga4_query.py --metrics screenPageViews,sessions,totalUsers --dimension pagePath --limit 20\n\nTraffic Sources\npython3 scripts/ga4_query.py --metric sessions --dimension sessionSource --limit 20\n\nLanding Pages\npython3 scripts/ga4_query.py --metric sessions --dimension landingPage --limit 30\n\nCustom Date Range\npython3 scripts/ga4_query.py --metric sessions --dimension pagePath --start 2026-01-01 --end 2026-01-15\n\nFilter by Page Path\npython3 scripts/ga4_query.py --metric screenPageViews --dimension pagePath --filter \"pagePath=~/blog/\"\n\nAvailable Metrics\n\nCommon metrics: screenPageViews, sessions, totalUsers, newUsers, activeUsers, bounceRate, averageSessionDuration, conversions, eventCount\n\nAvailable Dimensions\n\nCommon dimensions: pagePath, pageTitle, landingPage, sessionSource, sessionMedium, sessionCampaignName, country, city, deviceCategory, browser, date\n\nOutput Formats\n\nDefault: Table format Add --json for JSON output Add --csv for CSV output"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/jdrhyne/ga4",
    "publisherUrl": "https://clawhub.ai/jdrhyne/ga4",
    "owner": "jdrhyne",
    "version": "1.2.2",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/ga4",
    "downloadUrl": "https://openagent3.xyz/downloads/ga4",
    "agentUrl": "https://openagent3.xyz/skills/ga4/agent",
    "manifestUrl": "https://openagent3.xyz/skills/ga4/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/ga4/agent.md"
  }
}