कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

native-google-analytics

codeninja23 द्वारा

Web & Frontend Development
390clawskills.sh द्वारा बताए गए डाउनलोड
18स्टार
1व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

Query Google Analytics 4 (GA4) data directly via the Analytics Data API.

विवरण

यह स्किल क्या करती है

Queries Google Analytics 4 data directly via the Analytics Data API. Supports metrics like pageviews, sessions, users, bounce rate, and conversions across custom date ranges, dimensions, and filters. Calls the API directly without a third-party proxy.

Queries GA4 directly via the official API without requiring the Analytics UI or a third-party data connector.

इसे कब इस्तेमाल करें

  • Check which blog posts got the most traffic last month
  • Compare sessions by traffic source after a campaign launch
  • Find landing pages with high bounce rates
  • Break down visitors by country or device type
  • Pull conversion data by campaign name for a report

उदाहरण वर्कफ़्लो

इनपुट

User asks: What were my top 10 pages by pageviews this January?

एजेंट
  1. 1

    Reads GA4_PROPERTY_ID from environment

  2. 2

    Calls ga4_query.py with --metrics screenPageViews --dimension pagePath --start 2026-01-01 --end 2026-01-31 --limit 10

  3. 3

    Authenticates using GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, and GOOGLE_REFRESH_TOKEN

  4. 4

    Sends request to analyticsdata.googleapis.com

  5. 5

    Returns formatted table of pages and their pageview counts

आउटपुट

A ranked table of page paths with pageview totals for January 2026

आवश्यकताएँ

  • Google Cloud project with Analytics Data API enabled
  • OAuth 2.0 client credentials (Client ID and Client Secret) from Google Cloud Console
  • GA4 property ID from Google Analytics Admin settings
  • OAuth refresh token generated via local browser login flow
  • google-auth-oauthlib Python package installed

इंस्टॉलेशन

clawhub install codeninja23/native-google-analytics

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक