Skip to content

Commit 5136985

Browse files
andrepimentaclaude
andcommitted
Add Umami analytics events to install flow
Track user journey through installation: - Install modal shown - Install started - Install success/failed 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 683148c commit 5136985

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/script.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1613,13 +1613,17 @@ const getScript = (isTelemetryEnabled: boolean) => `<script>
16131613
if (main) main.style.display = 'flex';
16141614
if (progress) progress.style.display = 'none';
16151615
if (success) success.style.display = 'none';
1616+
1617+
sendStats('Install modal shown');
16161618
}
16171619
16181620
function hideInstallModal() {
16191621
document.getElementById('installModal').style.display = 'none';
16201622
}
16211623
16221624
function startInstallation() {
1625+
sendStats('Install started');
1626+
16231627
// Hide main content, show progress
16241628
document.getElementById('installMain').style.display = 'none';
16251629
document.getElementById('installProgress').style.display = 'flex';
@@ -1637,9 +1641,11 @@ const getScript = (isTelemetryEnabled: boolean) => `<script>
16371641
successEl.style.display = 'flex';
16381642
16391643
if (success) {
1644+
sendStats('Install success');
16401645
successEl.querySelector('.install-success-text').textContent = 'Installed';
16411646
successEl.querySelector('.install-success-hint').textContent = 'Send a message to get started';
16421647
} else {
1648+
sendStats('Install failed');
16431649
// Show error state
16441650
successEl.querySelector('.install-check').style.display = 'none';
16451651
successEl.querySelector('.install-success-text').textContent = 'Installation failed';

0 commit comments

Comments
 (0)