Skip to content

Commit

Permalink
Add a new Analytics Event for Demo Mode (#50)
Browse files Browse the repository at this point in the history
This will cause the extension to send a new analytics event (`Toggled
Demo Mode`) anytime that the demo switch is clicked.
  • Loading branch information
versilis authored Apr 14, 2023
1 parent e8ee567 commit fa93175
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/src/views/agent/AgentPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ export const AgentPage = () => {
};

const handleDemoModeClick = () => {
// Set demo mode true and clear target port and container
sendAnalyticsEvent("Toggled Demo Mode", { enabled: !config.demo_mode_enabled });
// Toggle demo mode on or off and remove any targeted port or container
handleConfigChange({
...config,
demo_mode_enabled: !config.demo_mode_enabled, // toggle demo mode on/off
Expand Down

0 comments on commit fa93175

Please sign in to comment.