Skip to content

Fix mobile install intent tracking#1052

Merged
AvdLee merged 2 commits into
masterfrom
growth/fix-mobile-intent-tracking
Jun 16, 2026
Merged

Fix mobile install intent tracking#1052
AvdLee merged 2 commits into
masterfrom
growth/fix-mobile-intent-tracking

Conversation

@AvdLee

@AvdLee AvdLee commented Jun 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • Preserve App Store Install tracking when the mobile intent prompt intercepts an App Store click before Plausible's class-based handler can observe it.
  • Add stable mobile prompt properties to the prompt funnel events so they carry consistent source/surface/placement metadata.
  • Loosen the Kit submit guard enough to still catch the mobile form if ConvertKit dispatches outside the injected container while the prompt is visible.

Test plan

  • npm run lint
  • npm run format:check
  • npm run typecheck
  • npm run build
  • npm run knip

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the mobile download intent prompt tracking in the docs site so key App Store install analytics aren’t lost when the prompt intercepts App Store clicks, and so funnel events carry consistent metadata.

Changes:

  • Adds a getMobilePromptProps helper to standardize Plausible event props for the mobile intent prompt funnel.
  • Preserves the primary App Store Install KPI by manually tracking it when the prompt intercepts an App Store click.
  • Loosens the ConvertKit submit guard to detect the mobile download form submission even when it dispatches outside the injected container.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/src/old/components/MobileDownloadLinkForm.astro Outdated

appStoreLink?.addEventListener("click", () => {
track("Mobile Download App Store Link Clicked");
track("Mobile Download App Store Link Clicked", getMobilePromptProps());
Comment on lines +455 to +458
const isMobileDownloadForm =
formContainer?.contains(form) ||
(!container.hidden && form.dataset.svForm === "9491475");
if (!isMobileDownloadForm) return;
@AvdLee AvdLee merged commit 21a3562 into master Jun 16, 2026
1 check passed
@AvdLee AvdLee deleted the growth/fix-mobile-intent-tracking branch June 16, 2026 07:53
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