All skills
google avatar

/google-analytics-admin-api-basics

@becc4b8
by googlegoogle/skills21k stars
1,698

Manages Google Analytics account and property settings, enables the Analytics Admin API via the Cloud CLI, lists accounts and properties, and manages data streams, custom dimensions, conversion events, and integrations. Use when you need to programmatically configure Google Analytics accounts, provision properties, manage data retention, configure Measurement Protocol secrets, or manage Firebase and Google Ads links.

Use this Skill: https://skilld.dev/gh/google/skills/google-analytics-admin-api-basics

This session only. Nothing lands on disk.

referencesnodejs.md

≈388 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Google Analytics Admin API Node.js Client Library Installation

This guide provides specific instructions for installing and setting up the Google Analytics Admin API client library for Node.js.

Prerequisites

  • Node.js: v14.x or higher (v16+ recommended).
  • Package Manager: npm or yarn.
  • Authentication: Application Default Credentials (ADC) configured via gcloud auth application-default login.

Installation

Install the official Google Analytics Admin npm package.

[!NOTE] For complete reference documentation, see the Node.js Analytics Admin Reference.

Run the following command in your project directory:

npm install @google-analytics/admin

If npm is not available, prompt the user to install Node.js (and npm) before installing the package.

Why: Installing @google-analytics/admin pulls in the official gRPC and REST client bindings for Node.js.

Quickstart / Usage

const {AnalyticsAdminServiceClient} = require('@google-analytics/admin');

async function listAccounts() {
  // Initialize the client. Uses ADC from the execution environment.
  const analyticsAdminClient = new AnalyticsAdminServiceClient();

  const [accountSummaries] = await analyticsAdminClient.listAccountSummaries();

  console.log('Available Accounts:');
  for (const account of accountSummaries) {
    console.log(`Account: ${account.displayName} (${account.name})`);
  }
}

listAccounts().catch(console.error);

Source: SKILL.md on GitHub

No alerts10d3 checks · Risk SAFE
  • Gen Agent Trust Hub10d

    This skill provides guidance on using the Google Analytics Admin API. It includes instructions for enabling the API, authenticating using standard tools, and installing official client libraries for multiple programming languages. No security issues were identified.

  • Socket10d

    No alerts

  • Snyk10d

    Risk: LOW · No issues

Signed by skilld at becc4b8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated last week
metadata
{
  "version": "1.0.0",
  "category": "GoogleAnalytics"
}

README badge

README badge for google/skills/google-analytics-admin-api-basics