npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@slates-integrations/google-analytics

v0.2.0-rc.2

Published

Query and retrieve analytics reports on user interactions, traffic, and engagement metrics across websites and apps. Send event data to GA4 via the Measurement Protocol for tracking server-side and offline interactions. Manage GA4 accounts, properties, da

Readme

Google Analytics

Query and retrieve analytics reports on user interactions, traffic, and engagement metrics across websites and apps. Send event data to GA4 via the Measurement Protocol for tracking server-side and offline interactions. Manage GA4 accounts, properties, data streams, and user permissions. Create and manage custom dimensions, metrics, audiences, and key events. Generate real-time and funnel reports with configurable dimensions, metrics, date ranges, and filters. Link properties with Firebase, Google Ads, BigQuery, and other Google services. Audit data access and search change history.

Tools

Audit Data Access

Generate a data access report to audit who accessed your analytics data and when. Shows which users and service accounts made data requests against the GA4 property. This helps with compliance and security monitoring by tracking API and UI data access patterns.

Get Metadata

Retrieve the available dimensions and metrics for a GA4 property. Use this to discover which fields can be used in report queries, including both standard and custom dimensions/metrics. Returns the full catalog of available dimensions and metrics with their descriptions, types, and categories.

List Accounts and Properties

List Google Analytics accounts accessible to the authenticated user and their GA4 properties. Useful for discovering available accounts and property IDs to use with other tools.

Manage Audiences

List, create, update, or archive audiences on a GA4 property. Audiences are groups of users segmented by attributes or behaviors, used for targeted analysis and remarketing. Use list to see all audiences, create to define new audience segments, update to modify audience display name or description, and archive to remove them.

Manage Custom Dimensions

List, create, update, or archive custom dimensions on a GA4 property. Custom dimensions allow you to track additional data points beyond the built-in dimensions. Use list to see all custom dimensions, create to add new ones, update to modify display names or descriptions, and archive to remove them.

Manage Custom Metrics

List, create, update, or archive custom metrics on a GA4 property. Custom metrics allow you to track numerical data beyond the built-in metrics. Use list to see all custom metrics, create to add new ones, update to modify display names, descriptions, or measurement units, and archive to remove them.

Manage Data Streams

List, get, create, update, or delete data streams on a GA4 property. Data streams represent sources of data flowing into GA4, such as websites (Web) or mobile apps (iOS/Android). Also supports listing and creating Measurement Protocol secrets for a specific data stream.

Manage Key Events

List, create, update, or delete key events (conversions) on a GA4 property. Key events mark specific user actions as valuable for your business (e.g., purchases, sign-ups, form submissions). Previously known as "conversion events" in Google Analytics.

Run Funnel Report

Generate a funnel report to visualize the steps users take to complete a task. Shows how well users succeed or fail at each step in a multi-step process. Use this to analyze conversion funnels like checkout flows, onboarding sequences, or any multi-step user journey.

Run Realtime Report

Query real-time analytics data showing current activity on a GA4 property. Shows data from the last 30 minutes. Common real-time dimensions: \

Run Report

Query an analytics report from a GA4 property with configurable dimensions, metrics, date ranges, filters, and sorting. Supports up to 4 simultaneous date ranges and provides unsampled data. Common dimensions: \

Send Events

Send event data to Google Analytics 4 via the Measurement Protocol. Use this to record server-side interactions, offline conversions, or events from non-web/app contexts (e.g., kiosks, POS systems, CRM triggers). The Measurement Protocol supplements automatic data collection — it does not replace gtag, Tag Manager, or Firebase.

Validate Events

Validate event data against the GA4 Measurement Protocol without actually sending the events. Use this to test event payloads for errors before sending them to production. Returns validation messages indicating any issues with the event data format, parameter names, or values.

License

This integration is licensed under the FSL-1.1.