Skip to content

Count iPhone installs and installs that finish in the background - #21

Merged
truegoodcraft merged 1 commit into
mainfrom
claude/project-thread-jr313j
Oct 20, 2026
Merged

truegoodcraft merged 1 commit into
mainfrom
claude/project-thread-jr313j

Conversation

@truegoodcraft

@truegoodcraft truegoodcraft commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Before: on iPhone the install suggestion only shows Add to Home Screen steps, and its only button is Not now, so every iPhone visitor who installs is counted as a dismissal and never as an install. On Android and desktop, an install that finishes after the tab goes to the background is dropped.

After: the iPhone suggestion shows I added it beside Not now (same two-button layout, the button that says "Install now" on other browsers). Tapping it closes the prompt, starts the usual 14-day quiet period and sends the existing install event. The browser's own install event is sent even if the tab is hidden, kept alive like a click.

How: src/main.ts relabels the existing action button when there is no native prompt instead of hiding it; src/analytics.ts exempts install from the visible-tab rule and treats it as an action for keepalive. No new event, field, label or identifier; still one attempt, no queue or retry, and privacy/offline suppression unchanged. Kingston and Brockville disclosures and deployments/kingston/ANALYTICS.md say installs include the iPhone confirmation. Unit tests updated (install sent once while hidden, survives backgrounding, keepalive). Release is separate per community.

On iPhone the install suggestion can only show Add to Home Screen steps,
so its only button was Not now and every iPhone install was counted as a
dismissal. It now offers I added it beside Not now, which sends the
existing install event. A browser install event is also sent when the
tab is already in the background, with keepalive like a click. No new
event, field or identifier; disclosures updated.
@truegoodcraft
truegoodcraft merged commit 7f0f4fa into main Oct 20, 2026
4 checks passed
@truegoodcraft
truegoodcraft deleted the claude/project-thread-jr313j 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.

2 participants