All skills
google-analytics-data-api-basics
Enable the Analytics Data API and run a v1beta report querying metrics like activeUsers by city and date.
- Part of google/skills
- 9.1k installs
- Productivity · Business tools
When to use it
You have a Google Analytics property ID and need a scripted report, but haven't set up API access or chosen valid dimensions and metrics.
For example
You say
Use google-analytics-data-api-basics to write a Python script that reports activeUsers and sessions by city and date for property 1234567 since May 1, 2026.
You get
- Python report script
- API enablement commands
- ADC login command
How it works
- Includes a checkCompatibility() example to test whether chosen dimensions and metrics can be queried together.
- Lists commonly used dimensions and metrics such as city, date, activeUsers, and screenPageViews.
Before installing
Requires the Google Cloud CLI (gcloud) and a Google Cloud project with the Analytics Data API enabled; reports need Application Default Credentials with analytics.readonly scope.
More Business tools skills
See all- lark-approval462kFinds, starts and handles Lark approval requests, including pending and completed items.
- lark-okr426kViews and edits Lark OKR cycles, objectives, key results and progress records.
- corporate-registration-consulting11.5kWalks a first-timer through Korean stock company incorporation registration and prepares the HWP forms.
- iros-registry-automation11.5kPrepares corporate and property registry certificate requests on IROS and guides you through login, payment and saving.
Also in this pack
- cloud-run-basics19.4kDeploys and manages Cloud Run services, jobs and worker pools.
- gemini-api18.8kWrites code that calls Gemini models for text, images, video, audio, embeddings and more across languages.
- google-cloud-recipe-auth17.1kExplains how to authenticate and authorize users and services to Google Cloud APIs, including IAM and ADC.
- google-cloud-recipe-onboarding16.9kWalks a new developer through creating a Google Cloud account, setting up billing and deploying a first resource.