Skip to content

Commit

Permalink
chore: update trial end workspace event (#6088)
Browse files Browse the repository at this point in the history
  • Loading branch information
makeavish authored Sep 27, 2024
1 parent 717545e commit 4c95df4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions frontend/src/pages/WorkspaceLocked/WorkspaceLocked.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,22 @@ export default function WorkspaceBlocked(): JSX.Element {
} = useLicense();

useEffect((): void => {
logEvent('Trial: Blocker Screen Viewed', {});
logEvent('Workspace Blocked: Screen Viewed', {});
}, []);

const handleContactUsClick = (): void => {
logEvent('Trial: Contact Us CTA Clicked', {});
logEvent('Workspace Blocked: Contact Us Clicked', {});
};

const handleTabClick = (key: string): void => {
logEvent('Trial: Blocked Screen Tabs Clicked', { tabKey: key });
logEvent('Workspace Blocked: Screen Tabs Clicked', { tabKey: key });
};

const handleCollapseChange = (key: string | string[]): void => {
const lastKey = Array.isArray(key) ? key.slice(-1)[0] : key;
logEvent('Trial: Blocker Screen Tab FAQ Item Clicked', { panelKey: lastKey });
logEvent('Workspace Blocked: Screen Tab FAQ Item Clicked', {
panelKey: lastKey,
});
};

useEffect(() => {
Expand Down

0 comments on commit 4c95df4

Please sign in to comment.