DataHub story traffic measurement
DataHub story traffic measurement
Checked 2026-10-24 at approximately 21:02 UTC for factory-215.5. This is a read-only measurement recipe and access handoff, not a traffic report. Traffic value: unavailable. No authenticated analytics report was read, no account or integration changed, and no message sent.
Existing source and what was actually checked
The local DataHub application checkout, ~/src/datopian/datahub-next, at commit 7b87e7be1a1108d1ab303f10e71d4b3f9b1ad3e0, contains an existing GA4 reporting utility in lib/ga.ts: it requests screenPageViews with pagePath, hostName and date. Its configured inputs are GA_PROPERTY_ID, GA_CLIENT_EMAIL and GA_PRIVATE_KEY. This makes GA4 the first source to establish, rather than building new analytics.
The current process has none of those three inputs, no GOOGLE_APPLICATION_CREDENTIALS, and no POSTHOG_PERSONAL_API_KEY or POSTHOG_PROJECT_ID. No non-example .env* files were present at the app repository root, and the normal local Google ADC credential file was absent. This was a presence-only check; no secret values were printed. No dedicated analytics connector was exposed in this session. This bounded inspection does not prove no credentials exist anywhere else on the machine.
The app also contains PostHog instrumentation (lib/posthog-client.ts), but that is not evidence of reporting access. components/analytics.tsx is explicitly an AnalyticsMockup with hard-coded values; those numbers must never enter the baseline. scripts/sync-ga-views.ts and scripts/sync-ga-views-historical.ts are commented-out code, not a demonstrated current reporting pipeline.
A direct read of the existing Keeling Curve blog page returned HTTP 200 and its HTML contained googletagmanager.com. This confirms a live page and a tag-manager marker, not successful event delivery, the reporting property, property timezone or any visit count. The local app source permits both global tag-manager instrumentation and per-post analytics configuration, so confirm which property actually receives /blog/ traffic before collecting numbers.
Exact access handoff
Rufus coordinates with the DataHub/Datopian analytics property administrator; the individual administrator is not established by the inspected evidence. Supply either:
- The GA4 property ID and property timezone that receive
datahub.io/blog/*, plus existing read-only user/service-account access through the normal secure credential mechanism; or - An administrator-produced export of the report below, including property/timezone/filter/date metadata and observation time, if credential provisioning would delay the pilot.
The first path should use the analytics.readonly scope and property access, following Google's API quickstart. Do not paste keys into a bead or commit them. No access request was sent. Record successful authenticated reading before describing the metric as available. If the administrator identifies a different provider as authoritative, version the recipe and record the reason; do not combine provider counts.
Initial report recipe
Use GA4 Data API runReport against the confirmed property. Request metric screenPageViews, dimensions date, hostName and pagePath, and an AND dimension filter matching hostName = datahub.io and pagePath = /blog/<selected-slug> exactly. Check the live canonical path first; include a trailing-slash alias only if evidence shows it is collected separately. Query-string campaign tags should not split the page-path total. Page views are repeated views, not unique people. Field definitions are in Google's metric/dimension schema.
Use the reporting property's timezone, not an assumed Europe/Paris timezone. Record the verified publication timestamp, convert it to that timezone, then take the seven calendar dates after the publication date. This deliberately excludes the partial publication day. For example, publication on 24 October in the property timezone gives a window of 25–31 October inclusive; those are an example, not this pilot's dates. Run after that window has completed, retain the observation timestamp, and identify later reruns as revisions rather than silently overwriting results. Property timezone and data-quality flags can be returned in response metadata.
A first permitted read should use one completed day for an existing blog page, with the same filters, to verify property/path coverage. Retain sanitized request parameters, raw report or export, row count, metric total, metadata (timezone, thresholding/sampling/empty-report flags) and acquisition time. Confirm event collection and access before interpreting an empty result as zero; otherwise record unavailable or unresolved. Do not query a state-mutating database sync script to obtain the report.
Store the selected story's result in its content bead:
provider: GA4
property_id: confirmed reporting property
metric: screenPageViews
host_filter: datahub.io
path_filter: exact canonical /blog/<slug>
verified_live_at: ISO timestamp with timezone
reporting_timezone: confirmed property timezone
window_start: first complete date after publication
window_end: seventh complete date, inclusive
observed_at: ISO timestamp
value: unavailable until an authenticated report/export exists
report_evidence: sanitized request and response/export location
quality_flags: sampling/thresholding/empty-result interpretation
access_owner: confirmed administrator, or unresolved
next_action: obtain confirmed property and read-only access/export
Keep Reddit/Instagram views, shares and outbound clicks in separate named channel records. Tagged URLs support attribution but are not proof that anyone clicked. Factory's weekly aggregate remains in factory-but.4.3; the seven-day observation is owned by the publishing-cycle coordinator (factory-but.6).
Publishing path discovered during this check
The same DataHub checkout's cli/README.md, “Publish an approved story to /blog,” documents a bundle with root README.md and its referenced public assets, uploaded with dh publish <bundle> --publication blog --name <slug> --title <title> --description <description>. The resulting path is https://datahub.io/blog/<slug>. dh is installed at ~/.local/bin/dh; no authenticated publishing action was attempted.
This technical route is separate from permission. The current DataPressr scripts/bundle-story.mjs PUBLICATIONS list records only datapressr; its comments refer to datapressr-kh5.8 / datahub-next-cyz.1 for a sanctioned blog grant. skills/push/SKILL.md also requires the story approval record. The coordinator must check those current records before a blog release; possession of a working token is not a grant. A reviewed local bundle and preview can proceed independently.