Skip to content

Commit

Permalink
Add workspace open to analytics
Browse files Browse the repository at this point in the history
- important step for activation funnel
  • Loading branch information
mtsgrd committed Nov 29, 2024
1 parent 081c347 commit 39e16cf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/desktop/src/lib/components/Board.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
import { BranchController } from '$lib/vbranches/branchController';
import { VirtualBranchService } from '$lib/vbranches/virtualBranch';
import { getContext } from '@gitbutler/shared/context';
import posthog from 'posthog-js';
import { onMount } from 'svelte';
import { flip } from 'svelte/animate';
const vbranchService = getContext(VirtualBranchService);
Expand Down Expand Up @@ -71,6 +73,10 @@
$showHistoryView = !$showHistoryView;
}
});
onMount(() => {
posthog.capture('Workspace Open');
});
</script>

<svelte:window on:keydown={handleKeyDown} />
Expand Down

0 comments on commit 39e16cf

Please sign in to comment.