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.

You’re reading version sha-4125e9fac51b. Go to the current version

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

  • metadata
  • normalize-report
  • properties
  • realtime
  • report

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.

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.list under properties.read, projecting properties.
  • metadata.get under metadata.read, projecting the property, dimensions, metrics, and fetch time.
  • reports.run under reports.read, projecting property, request, dimension and metric headers, rows, row count, pagination, response metadata, property quota, and fetch time.
  • reports.run_realtime under reports.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 sha-4125e9fac51b, shown as its exact bytes.

Runners
  • metadata
  • normalize-report
  • properties
  • realtime
  • report
Profile digestsha256:9fe066e208804ee4df1d6f219b27119b8cb0fdb689f542c46c953e618dabe190
skill: google-analytics
version: "0.1.8"

catalog:
  kind: graph
  audience: public
  visibility: public
  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.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:
    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:
    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:
    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:
    inputs: {}
    result_from: [read]
    steps:
      - id: read
        operation: google/analytics/properties.list
        result_fields: [properties]
        input: {}

  metadata:
    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.

The latest recorded test covers an earlier version, 0.1.13. It does not establish a result for this version.

Test result

Harness resultAn earlier version was tested
Tested version0.1.13Not this page’s version, sha-4125e9fac51b
Recorded result7 checks passed · 0 failed
Result sourceRun by the Runx registry at publication
Suiterunx-harness
Test recorded
Declared cases3

Package identity

Published revisionsha-4125e9fac51b
Content digestsha256:7e0d0472cca1b3b10995ef1a8bcb4a8448495d01d92c280be13c3e2d4473a17d
SKILL.md digestsha256:d6c23b6ec788fc4f06711c445ed8faa3121b2705568dcda805d4635cc29a8bd2
Execution profile digestsha256:9fe066e208804ee4df1d6f219b27119b8cb0fdb689f542c46c953e618dabe190
Publisher identityVerified publisher · runx
Trust tierVerified publisherRunx has verified this publisher. This tier is not a code assessment.
Attestations
  • Publisher · Verifiedrunx · 16 Oct 2026
Source provenanceNot published with this version

Version history

  1. 0.1.13Content digest sha256:1d7cb2aa11b058172abcb9151837fd54a5d661d792ea84a64e0720d75a01c37d
  2. sha-8b9cb4a4abfcContent digest sha256:8b9cb4a4abfc9e532f431e91d8a9d23af6a562ec640c36053ccda471174ca1ea
  3. sha-54fca24181bbContent digest sha256:4ecc691f76fd2a5e9093e7316c955aa822e6459d66b9ba05408868ee81faa5c7
  4. sha-4125e9fac51bViewingContent digest sha256:7e0d0472cca1b3b10995ef1a8bcb4a8448495d01d92c280be13c3e2d4473a17d