We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c44add commit 6508607Copy full SHA for 6508607
packages/common/src/utils/analytics.ts
@@ -112,9 +112,22 @@ export async function resetUserId() {
112
}
113
114
115
+const isAllowedEvent = (eventName, secondArg) => {
116
+ try {
117
+ if (eventName === 'VSCode - workbenchActionExecuted') {
118
+ if (secondArg.id.startsWith('cursor')) {
119
+ return false;
120
+ }
121
122
+ return true;
123
+ } catch (e) {
124
125
126
+};
127
+
128
export default function track(eventName, secondArg: Object = {}) {
129
try {
- if (!DNT) {
130
+ if (!DNT && isAllowedEvent(eventName, secondArg)) {
131
const data = {
132
...secondArg,
133
version: VERSION,
0 commit comments