Skip to content

Add session duration and signup attribution to Expert modal tracking#4757

Open
dimitrieh wants to merge 1 commit intomainfrom
feature/expert-duration-signup-tracking
Open

Add session duration and signup attribution to Expert modal tracking#4757
dimitrieh wants to merge 1 commit intomainfrom
feature/expert-duration-signup-tracking

Conversation

@dimitrieh
Copy link
Copy Markdown
Contributor

@dimitrieh dimitrieh commented Mar 24, 2026

Description

Enriches Expert modal analytics with two signals:

  • Session duration: Tracks how long the modal was open (in seconds) on the expert-modal-closed event. Helps understand engagement depth beyond message count.
  • Signup attribution: Adds is_signup: true to expert-app-link-clicked when the outbound URL contains /account/create. Distinguishes signup intent from general app navigation.

Also adds expert-app-link-clicked tracking for all outbound links within the Expert modal (delegated click handler).

PostHog setup (Production):

Related Issue(s)

Findings from FlowFuse Expert tracking audit (internal research). Builds on #4755.

Checklist

  • I have read the contribution guidelines
  • I have considered the performance impact of these changes
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated
  • For blog PRs, an Art Request has been created (instructions)

- Track session duration (seconds) on expert-modal-closed
- Track outbound link clicks with is_signup flag when URL matches
  /account/create
- Add sessionOpenedAt timestamp for duration calculation
@netlify
Copy link
Copy Markdown

netlify bot commented Mar 24, 2026

Deploy Preview for flowforge-website ready!

Name Link
🔨 Latest commit 7d96fd7
🔍 Latest deploy log https://app.netlify.com/projects/flowforge-website/deploys/69c2ffb9c52c9a000788a5ec
😎 Deploy Preview https://deploy-preview-4757--flowforge-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 89 (🔴 down 2 from production)
Accessibility: 81 (no change from production)
Best Practices: 100 (no change from production)
SEO: 91 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@dimitrieh
Copy link
Copy Markdown
Contributor Author

@cstns can you have look here as well? tried to separate out the prs.

@dimitrieh dimitrieh requested a review from cstns March 24, 2026 22:21
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