Skip to content

Commit 9a997a8

Browse files
authored
Merge pull request #874 from 3DStreet/log-history
log history
2 parents 8b81538 + 44795fb commit 9a997a8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/editor/lib/history.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Events from './Events';
2+
import posthog from 'posthog-js';
23

34
export class History {
45
constructor(editor) {
@@ -39,6 +40,10 @@ export class History {
3940
}
4041

4142
cmd.name = optionalName !== undefined ? optionalName : cmd.name;
43+
posthog.capture('execute_command', {
44+
name: cmd.name
45+
});
46+
4247
cmd.execute();
4348

4449
this.lastCmdTime = Date.now();

0 commit comments

Comments
 (0)