mirror of
https://github.com/BorysLevytskyi/BitwiseCmd.git
synced 2025-12-23 13:12:42 +01:00
Add analytic events
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import React from 'react';
|
||||
import uuid from 'uuid';
|
||||
import { sendAnalyticsEvent } from './analytics';
|
||||
import AppState from './AppState';
|
||||
import { CmdShell, CommandInput } from './cmd';
|
||||
import AboutResultView from './components/AboutResultView';
|
||||
@@ -30,6 +31,13 @@ const shellModule = {
|
||||
appState.addCommandResult(c.input, <TextResultView text={`Debug Mode: ${appState.debugMode}`}/>);
|
||||
});
|
||||
|
||||
cmd.command("track", (c:CommandInput) => {
|
||||
sendAnalyticsEvent({
|
||||
eventCategory: 'General',
|
||||
eventAction: 'AnalyticsTest'
|
||||
});
|
||||
});
|
||||
|
||||
if(appState.env !== 'prod') {
|
||||
|
||||
// Default command for development purposes
|
||||
|
||||
Reference in New Issue
Block a user