Website analytics
Read and normalize GA4 properties, metadata, standard reports, and realtime reports through any compatible Runx connector, preserving the measurement caveats an operator needs before turning analytics into action.
Overview
Use this skill for bounded GA4 evidence: finding accessible properties, checking the dimension and metric catalog, measuring acquisition and on-site outcomes, or reading a short realtime window after a deployment or campaign.
The portable skill owns the measurement procedure and evidence contract. It does not own OAuth, credentials, tenants, connector selection, or provider routing. Operators may bring a local, self-hosted, third-party, or Runx-hosted connector. Any of those is compatible when it implements the operations and scopes below. Never place a connection id, credential handle, provider-config key, service URL, or tenant id in a skill input, fixture, or evidence packet; those bindings belong in the operator's Runx grant and connector configuration.
In the manual
Runners
metadatanormalize-reportpropertiesrealtimereport
Declared by its execution profile. Read the profile
SKILL.md
Google Analytics
Use this skill for bounded GA4 evidence: finding accessible properties, checking the dimension and metric catalog, measuring acquisition and on-site outcomes, or reading a short realtime window after a deployment or campaign.
The portable skill owns the measurement procedure and evidence contract. It does not own OAuth, credentials, tenants, connector selection, or provider routing. Operators may bring a local, self-hosted, third-party, or Runx-hosted connector. Any of those is compatible when it implements the operations and scopes below. Never place a connection id, credential handle, provider-config key, service URL, or tenant id in a skill input, fixture, or evidence packet; those bindings belong in the operator's Runx grant and connector configuration.
Read the right thing
Use properties when the property is unknown. Use metadata before composing
an unfamiliar report: GA4 dimension and metric compatibility is part of the
query contract, not a formatting concern. Use report for date-bounded
analysis and realtime only for a current operational pulse.
normalize-report accepts a GA4-shaped result already supplied by a trusted
import or connector test. It performs the same semantic checks, but its output
says provider_status: not_called and source_status: supplied_result. A
supplied packet is useful evidence with external provenance; it is never proof
that Runx reached Google.
Use an explicit empty dimensions list for a metric-only total. Its response
must have empty dimension headers and row dimension values; metric headers and
values still match the exact ordered request.
A report should name the exact property, date ranges, ordered dimensions, ordered
metrics, filters, ordering, currency, row limit, and offset needed for the
decision. Keep it narrow. Wide reports are more likely to combine incompatible
fields, hit quotas, hide detail in an (other) row, or give an agent an
attractive but irrelevant aggregate.
The normalized packet maps each ordered value to its header name, retains row count and pagination, and carries timezone, currency, quota, and response metadata. Header drift is a hard failure because a row cannot be interpreted safely when the requested and returned fields differ.
Measurement caveats
Google Analytics is behavior and outcome evidence, not search-ranking evidence.
The Organic Search channel can include search engines other than Google and
depends on the property's channel definitions. Landing-page sessions and key
events help quantify outcomes, but they do not explain why visibility changed.
Join GA4 with Search Console on a deliberate page and date boundary, then inspect
content, releases, attribution settings, and business context before making a
causal claim.
Treat thresholding, sampling metadata, schema restrictions, and
data_loss_from_other_row as material. The skill returns
decision: usable_with_caveats when any is present. Do not silently compare a
thresholded segment with an unthresholded total, add rows across overlapping date
ranges, or treat a paginated page as the complete property.
Timezone, currency, reporting identity, key-event configuration, consent mode, and attribution settings can change interpretation without changing the query. Carry those assumptions into any comparison. Realtime data is provisional and suited to detection, not settled performance reporting.
Connector capability contract
A compatible connector exposes provider google-analytics with:
properties.listunderproperties.read, projectingproperties.metadata.getundermetadata.read, projecting the property, dimensions, metrics, and fetch time.reports.rununderreports.read, projecting property, request, dimension and metric headers, rows, row count, pagination, response metadata, property quota, and fetch time.reports.run_realtimeunderreports.realtime.read, using the same projected report shape and an explicit realtime request.
The connector decides how credentials are acquired and refreshed. It must enforce the caller's grant, bind the requested property, preserve Google errors, project only declared fields, and keep secret material out of results and receipts. This package is read-only; analytics administration, audience changes, event configuration, and deletion requests require separate governed capabilities.
Operator handoff
A sealed report packet is ready for review or for a higher-level
organic-growth comparison. Preserve the evidence digest and the exact query
when deriving trends. A useful organic acquisition slice commonly includes a
landing-page dimension, a channel or source dimension, and only the outcome
metrics needed for the decision, such as sessions, engaged sessions, key events,
or revenue.
Stop when the property is ambiguous, requested fields are incompatible, response headers drift, pagination is incomplete for a whole-property claim, privacy metadata undermines the comparison, timezone or currency is unknown where it matters, the supplied result lacks provenance, or the configured connector lacks the exact capability.
The deterministic module exists for GA4 domain semantics that generic Runx tools cannot infer: binding ordered headers to values, validating report identity, parsing numeric metrics, and carrying privacy and completeness caveats. Runx owns provider execution, grants, digesting, projection, and receipts.
Published execution profile
The execution profile published with 0.1.13, shown as its exact bytes.
| Runners |
|
|---|---|
| Profile digest | sha256:ff6bd1486f922c6dc0b270b9771d3ec176bde9c2932635ab832343b8279c76cd |
skill: google-analytics
version: "0.1.13"
catalog:
kind: graph
audience: public
visibility: public
category: data
role: branded
canonical_skill: runx/organic-growth
provider: google/analytics
execution: read
completion: provider_readback
approval: none
input_definitions:
property:
type: string
required: true
description: Exact GA4 property resource, such as properties/123456.
schema: { pattern: '^properties/[1-9][0-9]*$' }
date_ranges:
type: array
required: true
description: One to four inclusive GA4 date ranges using YYYY-MM-DD or GA relative dates.
schema:
minItems: 1
maxItems: 4
items:
type: object
required: [start_date, end_date]
additionalProperties: false
properties:
start_date: { type: string, pattern: '^(?:[0-9]{4}-[0-9]{2}-[0-9]{2}|today|yesterday|[0-9]+daysAgo)$' }
end_date: { type: string, pattern: '^(?:[0-9]{4}-[0-9]{2}-[0-9]{2}|today|yesterday|[0-9]+daysAgo)$' }
name: { type: string, maxLength: 64 }
dimensions:
type: array
required: true
description: Zero to nine ordered GA4 dimension names; an empty list supports metric-only reports.
schema:
maxItems: 9
items: { type: string, minLength: 1, maxLength: 256 }
metrics:
type: array
required: true
description: One to ten ordered GA4 metric names.
schema:
minItems: 1
maxItems: 10
items: { type: string, minLength: 1, maxLength: 256 }
filter:
type: object
required: false
description: GA4 FilterExpression passed intact to the configured provider connector.
schema:
additionalProperties: true
order_bys:
type: array
required: false
description: Ordered GA4 OrderBy records passed intact to the provider connector.
schema:
maxItems: 10
items: { type: object, additionalProperties: true }
minute_ranges:
type: array
required: false
description: One or more bounded GA4 realtime minute ranges.
schema:
maxItems: 4
items:
type: object
required: [start_minutes_ago, end_minutes_ago]
additionalProperties: false
properties:
start_minutes_ago: { type: integer, minimum: 0, maximum: 59 }
end_minutes_ago: { type: integer, minimum: 0, maximum: 59 }
name: { type: string, maxLength: 64 }
report_request:
type: object
required: true
description: Expected GA4 report identity and ordered headers for supplied-result normalization.
schema:
required: [property, report_type, dimensions, metrics]
additionalProperties: false
properties:
property: { type: string, pattern: '^properties/[1-9][0-9]*$' }
report_type: { type: string, enum: [standard, realtime] }
date_ranges: { type: array, maxItems: 4, items: { type: object, additionalProperties: true } }
dimensions: { type: array, maxItems: 9, items: { type: string, minLength: 1, maxLength: 256 } }
metrics: { type: array, minItems: 1, maxItems: 10, items: { type: string, minLength: 1, maxLength: 256 } }
dimension_filter: { type: object, additionalProperties: true }
metric_filter: { type: object, additionalProperties: true }
order_bys: { type: array, maxItems: 10, items: { type: object, additionalProperties: true } }
minute_ranges: { type: array, maxItems: 4, items: { type: object, additionalProperties: true } }
currency_code: { type: string, pattern: '^[A-Z]{3}$' }
limit: { type: integer, minimum: 1, maximum: 100000 }
offset: { type: integer, minimum: 0 }
provider_result:
type: object
required: true
description: GA4 report readback with ordered headers and bounded rows; provider metadata is preserved.
schema:
required: [dimension_headers, metric_headers, rows]
properties:
property: { type: string, pattern: '^properties/[1-9][0-9]*$' }
dimension_headers: { type: array, maxItems: 9, items: { type: [string, object], additionalProperties: true } }
metric_headers: { type: array, maxItems: 10, items: { type: [string, object], additionalProperties: true } }
rows: { type: array, maxItems: 100000, items: { type: object, additionalProperties: true } }
row_count: { type: integer, minimum: 0 }
pagination: { type: object, additionalProperties: true }
metadata: { type: object, additionalProperties: true }
property_quota: { type: object, additionalProperties: true }
fetched_at: { type: string, format: date-time }
harness:
files: [fixtures/support/composed.graph]
cases:
- name: normalizes-organic-landing-page-outcomes
operator_journeys:
- mode: standalone
request: Show which organic landing pages produced engaged sessions and conversions in this GA4 property.
expected_outcome: Return a normalized bounded GA4 report with property identity, dimensions, metrics, dates, and measurement caveats intact.
- mode: composed
request: Normalize this connector-returned GA4 report for the growth analysis chain.
expected_outcome: Reuse provider evidence without querying GA4 again or hiding thresholding and attribution caveats.
prior_evidence:
- The compatible connector response, property binding, report request, and measurement metadata supplied in the fixture.
must_not_repeat:
- Do not call the analytics provider again.
- Do not recompute or discard provider measurement caveats.
runner: normalize-report
inputs:
request:
property: properties/123456
report_type: standard
date_ranges:
- { start_date: "2026-06-01", end_date: "2026-06-30", name: june }
dimensions: [landingPagePlusQueryString, sessionDefaultChannelGroup]
metrics: [sessions, keyEvents, totalRevenue]
provider_result:
property: properties/123456
dimension_headers:
- { name: landingPagePlusQueryString }
- { name: sessionDefaultChannelGroup }
metric_headers:
- { name: sessions, type: TYPE_INTEGER }
- { name: keyEvents, type: TYPE_FLOAT }
- { name: totalRevenue, type: TYPE_CURRENCY }
rows:
- dimension_values: [/guides/runx, Organic Search]
metric_values: ["120", "9", "450.25"]
row_count: 1
pagination: { complete: true, returned_rows: 1 }
metadata:
time_zone: Australia/Sydney
currency_code: AUD
subject_to_thresholding: false
data_loss_from_other_row: false
fetched_at: "2026-07-01T03:00:00Z"
expect:
status: sealed
steps: [normalize, digest, finalize]
step_outputs:
finalize:
subset:
report_evidence:
data:
schema: runx/google-analytics.report_evidence.v1
decision: ready
provider: google-analytics
provider_status: not_called
source_status: supplied_result
property: properties/123456
report_type: standard
rows:
- dimensions:
landingPagePlusQueryString: /guides/runx
sessionDefaultChannelGroup: Organic Search
metrics:
sessions: 120
keyEvents: 9
totalRevenue: 450.25
row_count: 1
pagination: { complete: true, returned_rows: 1 }
measurement: { time_zone: Australia/Sydney, currency_code: AUD }
validation: { status: pass }
receipt: { schema: runx.receipt.v1 }
- name: carries-privacy-thresholding-as-caveat
runner: normalize-report
inputs:
request:
property: properties/123456
report_type: standard
date_ranges:
- { start_date: "2026-07-01", end_date: "2026-07-19" }
dimensions: [city]
metrics: [activeUsers]
provider_result:
property: properties/123456
dimension_headers: [{ name: city }]
metric_headers: [{ name: activeUsers, type: TYPE_INTEGER }]
rows:
- dimension_values: [Sydney]
metric_values: ["18"]
row_count: 1
pagination: { complete: true, returned_rows: 1 }
metadata:
subject_to_thresholding: true
data_loss_from_other_row: false
time_zone: Australia/Sydney
expect:
status: sealed
steps: [normalize, digest, finalize]
step_outputs:
finalize:
subset:
report_evidence:
data:
decision: usable_with_caveats
privacy: { subject_to_thresholding: true }
validation: { status: pass }
receipt: { schema: runx.receipt.v1 }
- name: blocks-returned-header-drift
runner: normalize-report
inputs:
request:
property: properties/123456
report_type: standard
date_ranges:
- { start_date: "2026-06-01", end_date: "2026-06-30" }
dimensions: [landingPage]
metrics: [sessions]
provider_result:
property: properties/123456
dimension_headers: [{ name: landingPage }]
metric_headers: [{ name: totalUsers, type: TYPE_INTEGER }]
rows:
- dimension_values: [/]
metric_values: ["100"]
row_count: 1
pagination: { complete: true, returned_rows: 1 }
expect:
status: sealed
steps: [normalize, digest, finalize]
step_outputs:
finalize:
subset:
report_evidence:
data:
decision: blocked
validation: { status: fail }
receipt: { schema: runx.receipt.v1 }
connectors:
google/analytics:
operations: [reports.run, reports.run_realtime, properties.list, metadata.get]
runners:
report:
description: Run one date-bounded GA4 report on a property, with its measurement caveats. Check unfamiliar fields with metadata first.
default: true
inputs:
property:
definition: property
date_ranges:
definition: date_ranges
dimensions:
definition: dimensions
metrics:
definition: metrics
dimension_filter:
definition: filter
metric_filter:
definition: filter
order_bys:
definition: order_bys
currency_code:
type: string
required: false
description: ISO currency override when needed.
limit:
type: integer
required: false
default: 1000
description: Bounded row limit, at most 100000.
schema: { minimum: 1, maximum: 100000 }
offset:
type: integer
required: false
default: 0
description: Zero-based row offset.
schema: { minimum: 0 }
examples:
- property: properties/123456
date_ranges: [{ start_date: 30daysAgo, end_date: yesterday }]
dimensions: [landingPagePlusQueryString]
metrics: [sessions, keyEvents]
result_from: [finalize]
steps:
- id: read
operation: google/analytics/reports.run
result_fields: [property, request, dimension_headers, metric_headers, rows, row_count, pagination, metadata, property_quota, fetched_at]
input:
property: $input.property
date_ranges: $input.date_ranges
dimensions: $input.dimensions
metrics: $input.metrics
dimension_filter: $input.dimension_filter
metric_filter: $input.metric_filter
order_bys: $input.order_bys
currency_code: $input.currency_code
limit: $input.limit
offset: $input.offset
- id: normalize
inputs:
source_status: provider_readback
request:
property: $input.property
report_type: standard
date_ranges: $input.date_ranges
dimensions: $input.dimensions
metrics: $input.metrics
dimension_filter: $input.dimension_filter
metric_filter: $input.metric_filter
order_bys: $input.order_bys
currency_code: $input.currency_code
limit: $input.limit
offset: $input.offset
provider_result: $steps.read.provider_operation.result
tool: { module: google-analytics.mjs, export: normalizeReport }
outputs:
report_draft: object
- id: digest
tool: data.digest
inputs:
value: $steps.normalize.report_draft
- id: finalize
inputs:
report_draft: $steps.normalize.report_draft
digest_result: $steps.digest.digest_result
tool: { module: google-analytics.mjs, export: finalizeReport }
outputs:
report_evidence: object
artifacts:
named_emits: { report_evidence: report_evidence }
normalize-report:
description: Check and normalize a GA4-shaped result a trusted import already supplied, without calling Google, so never proof that runx reached Google.
inputs:
provider_result:
definition: provider_result
request:
definition: report_request
examples:
- request:
property: properties/123456
report_type: standard
date_ranges: [{ start_date: "2026-06-01", end_date: "2026-06-30" }]
dimensions: [landingPagePlusQueryString]
metrics: [sessions]
provider_result:
property: properties/123456
dimension_headers: [{ name: landingPagePlusQueryString }]
metric_headers: [{ name: sessions, type: TYPE_INTEGER }]
rows:
- dimension_values: [/guides/runx]
metric_values: ["120"]
row_count: 1
result_from: [finalize]
steps:
- id: normalize
inputs:
provider_result: $input.provider_result
request: $input.request
source_status: supplied_result
tool: { module: google-analytics.mjs, export: normalizeReport }
outputs:
report_draft: object
- id: digest
tool: data.digest
inputs:
value: $steps.normalize.report_draft
- id: finalize
inputs:
report_draft: $steps.normalize.report_draft
digest_result: $steps.digest.digest_result
tool: { module: google-analytics.mjs, export: finalizeReport }
outputs:
report_evidence: object
artifacts:
named_emits: { report_evidence: report_evidence }
realtime:
description: Read a short GA4 realtime window, a current pulse after a deployment or campaign, provisional rather than settled reporting.
inputs:
property:
definition: property
dimensions:
definition: dimensions
metrics:
definition: metrics
dimension_filter:
definition: filter
metric_filter:
definition: filter
minute_ranges:
definition: minute_ranges
limit:
type: integer
required: false
default: 1000
description: Bounded realtime row limit.
schema: { minimum: 1, maximum: 100000 }
examples:
- property: properties/123456
dimensions: [unifiedScreenName]
metrics: [activeUsers]
result_from: [finalize]
steps:
- id: read
operation: google/analytics/reports.run_realtime
result_fields: [property, request, dimension_headers, metric_headers, rows, row_count, pagination, metadata, property_quota, fetched_at]
input:
property: $input.property
dimensions: $input.dimensions
metrics: $input.metrics
dimension_filter: $input.dimension_filter
metric_filter: $input.metric_filter
minute_ranges: $input.minute_ranges
limit: $input.limit
- id: normalize
inputs:
source_status: provider_readback
request:
property: $input.property
report_type: realtime
dimensions: $input.dimensions
metrics: $input.metrics
dimension_filter: $input.dimension_filter
metric_filter: $input.metric_filter
minute_ranges: $input.minute_ranges
limit: $input.limit
provider_result: $steps.read.provider_operation.result
tool: { module: google-analytics.mjs, export: normalizeReport }
outputs:
report_draft: object
- id: digest
tool: data.digest
inputs:
value: $steps.normalize.report_draft
- id: finalize
inputs:
report_draft: $steps.normalize.report_draft
digest_result: $steps.digest.digest_result
tool: { module: google-analytics.mjs, export: finalizeReport }
outputs:
report_evidence: object
artifacts:
named_emits: { report_evidence: report_evidence }
properties:
description: List the GA4 properties the grant can read, when the property is unknown.
inputs: {}
result_from: [read]
steps:
- id: read
operation: google/analytics/properties.list
result_fields: [properties]
input: {}
metadata:
description: Read a property's dimension and metric catalog, before composing an unfamiliar report.
inputs:
property:
type: string
required: true
description: Exact GA4 property resource.
examples:
- property: properties/123456
result_from: [read]
steps:
- id: read
operation: google/analytics/metadata.get
result_fields: [property, dimensions, metrics, fetched_at]
input: { property: $input.property }
Published package and test evidence.
This exact version passed its recorded harness run: 7 checks passed · 0 failed.
Test result
| Harness result | Passed |
|---|---|
| Tested version | 0.1.13 |
| Recorded result | 7 checks passed · 0 failed |
| Result source | Run by the Runx registry at publication |
| Suite | runx-harness |
| Test recorded | |
| Declared cases | 3 |
| Test record | Open the recorded run |
Inspect receipt references
sha256:b411f87ff968625021a3538eab1b78a0009faa153bd8302d6b98f9e5b915c708sha256:c9c6bf030957670ac32927985737017c0bb441bbbf2dade4e6d73d98d05ab970sha256:685d5d0356cf5bb9e72169bd64b38940b191e2d032f7365f6d75d24e683babfcsha256:dcc22ff967c2cf4eb70d5539e59c18b73aa33da5ee662c48db4765bda2f7d3ebsha256:ce85d68e96bd05072908e560b919df4f37132b8a6f9895ec7a2d0c60a7eb5c15sha256:931c574f870e3ed17614c41858caf5728db4f65ed4af096eac9e41dcd2a0c398sha256:dfe1c86422f017de1c4dcbeb0ba768b4c32fc5b5173f8c6b27ac15c3b8a14e8bPackage identity
| Published revision | 0.1.13 |
|---|---|
| Content digest | sha256:1d7cb2aa11b058172abcb9151837fd54a5d661d792ea84a64e0720d75a01c37d |
| SKILL.md digest | sha256:82afb78078073b644281c7a388e2e99960a01b4d272380c127828bf862c68ce8 |
| Execution profile digest | sha256:ff6bd1486f922c6dc0b270b9771d3ec176bde9c2932635ab832343b8279c76cd |
| Publisher identity | Verified publisher · runx |
| Trust tier | Verified publisherRunx has verified this publisher. This tier is not a code assessment. |
| Attestations |
|
| Source provenance | Not published with this version |
Version history
0.1.13ViewingContent digest sha256:1d7cb2aa11b058172abcb9151837fd54a5d661d792ea84a64e0720d75a01c37dsha-8b9cb4a4abfcContent digest sha256:8b9cb4a4abfc9e532f431e91d8a9d23af6a562ec640c36053ccda471174ca1easha-54fca24181bbContent digest sha256:4ecc691f76fd2a5e9093e7316c955aa822e6459d66b9ba05408868ee81faa5c7sha-4125e9fac51bContent digest sha256:7e0d0472cca1b3b10995ef1a8bcb4a8448495d01d92c280be13c3e2d4473a17d