Skip to content

Add a "Did this help you find food?" answer to opened Kingston listings - #20

Merged
truegoodcraft merged 1 commit into
mainfrom
claude/did-this-help-l2g4ob
Oct 20, 2026
Merged

truegoodcraft merged 1 commit into
mainfrom
claude/did-this-help-l2g4ob

Conversation

@truegoodcraft

@truegoodcraft truegoodcraft commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Before: an opened listing on the Kingston directory ends with its weekly hours and action buttons.

After: the opened details end with one line, "Did this help you find food?", and two buttons, Yes and Not this time. After an answer, every listing shows "Thanks for letting us know." until the page reloads. There is no popup and no text box.

An answer sends one fixed aggregate event through the existing analytics path. Kingston sends {"event_name":"help_feedback","event_value":"yes"} or "not_this_time" with its usual v3 constants. It carries no listing, no outreach labels and no identifier, since provider identity must never enter analytics.

How: two optional event kinds, feedback_yes and feedback_no, follow the pattern of resource_open and the install-prompt kinds. A deployment must configure both payloads or neither. The emitter sends at most one answer per page load. The question is added by script only on the home directory, only while collection is allowed, and only where both payloads are configured, so Brockville, the static pages and no-JavaScript visitors see no change. The Kingston disclosure, ANALYTICS.md and docs name the new answers. The Kingston contract test pins the new wire format and the one-answer limit.

Lighthouse must accept help_feedback before a Kingston release that includes this. Merging publishes nothing.

An opened listing on the home directory ends with "Did this help you find
food?" and two buttons, Yes and Not this time. An answer sends one fixed
aggregate event (feedback_yes or feedback_no) through the existing
analytics path, without the listing, labels or any identifier. One answer
is sent per page load. The question appears only where a deployment
configures both payloads and collection is allowed.

Kingston maps the answers to help_feedback with event_value yes or
not_this_time and the disclosure names them. Brockville is unchanged.
@truegoodcraft
truegoodcraft marked this pull request as ready for review October 20, 2026 00:38
@truegoodcraft
truegoodcraft merged commit 449024d into main Oct 20, 2026
4 checks passed
@truegoodcraft
truegoodcraft deleted the claude/did-this-help-l2g4ob branch November 10, 2026 16:12
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.

1 participant