Skip to content

feat: add anonymous analytics tracking with opt-out#16

Merged
solidspark merged 1 commit into
mainfrom
hub-2879-add-analytics
Feb 7, 2026
Merged

feat: add anonymous analytics tracking with opt-out#16
solidspark merged 1 commit into
mainfrom
hub-2879-add-analytics

Conversation

@solidspark
Copy link
Copy Markdown
Contributor

Summary

Add analytics to track installer flow for quality assurance and bug tracking.

Events Tracked

Event When Properties
hubble-install-start At launch platform, arch
hubble-install-step Each step (1-5) platform, arch, step, step_name
hubble-install-error Any error/exit platform, arch, step, step_name, error
hubble-install-success Successful completion platform, arch, duration_seconds, board

Privacy Features

  • Anonymous: All tracking uses UserId='anonymous' - no personal identifiers
  • Sanitized errors: Home directory paths are replaced with ~ before sending
  • Opt-out support: Users can disable tracking via:
    • Environment variable: HUBBLE_NO_ANALYTICS=1
    • Command line: a=false or --no-analytics

Usage

# With analytics (default)
curl -fsSL https://get.hubble.com | bash -s <credentials>

# Without analytics
curl -fsSL https://get.hubble.com | bash -s <credentials> a=false

Add Rudderstack analytics to track installer flow for quality assurance:
- hubble-install-start: tracks installer launch
- hubble-install-step: tracks progress through each step
- hubble-install-error: tracks failures with sanitized error messages
- hubble-install-success: tracks successful completions

Privacy features:
- All tracking is anonymous (UserId='anonymous')
- Error messages are sanitized to remove home directory paths
- Users can opt-out via:
  - Environment variable: HUBBLE_NO_ANALYTICS=1
  - Command line flag: a=false or --no-analytics

Ticket: HUB-2879
@matt0x6F
Copy link
Copy Markdown

matt0x6F commented Feb 7, 2026

love a good opt-out

@solidspark solidspark merged commit 67f9a95 into main Feb 7, 2026
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