Skip to content

Adding scripts to get content_id#32

Open
macumber wants to merge 2 commits into
masterfrom
analytics_scripts
Open

Adding scripts to get content_id#32
macumber wants to merge 2 commits into
masterfrom
analytics_scripts

Conversation

@macumber

@macumber macumber commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds GA4 Data API helper scripts to support exporting/selecting content_id (via the GA4 contentId dimension) for the OpenStudio releases site tooling.

Changes:

  • Add ga-dimensions script to list GA4 built-in/custom dimensions with optional filtering.
  • Add ga-events script to export GA4 events to CSV/JSON with legacy Tab-N normalization and summary output.
  • Wire up dependency/scripts/docs and gitignore patterns for generated exports.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
openstudioreleases/scripts/listAnalyticsDimensions.ts New CLI utility to inspect available GA4 dimensions (supports --filter).
openstudioreleases/scripts/getAnalyticsEvents.ts New CLI utility to export GA4 events (CSV/JSON), normalize legacy contentId, and print summaries.
openstudioreleases/README.md Document GA export prerequisites and example usage.
openstudioreleases/package.json Add @google-analytics/data dependency and ga-* yarn scripts.
openstudioreleases/.gitignore Ignore generated GA export CSV/JSON outputs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread openstudioreleases/scripts/getAnalyticsEvents.ts
Comment thread openstudioreleases/scripts/listAnalyticsDimensions.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants