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 21068d2 commit ddb9196Copy full SHA for ddb9196
src/events/components/events.ts
@@ -1,4 +1,4 @@
1
-/* eslint-disable camelcase */
+/* eslint-disable camelcase, no-unreachable */
2
import Cookies from 'src/frame/components/lib/cookies'
3
import { parseUserAgent } from './user-agent'
4
import { Router } from 'next/router'
@@ -76,6 +76,9 @@ export function sendEvent<T extends EventType>({
76
} & EventPropsByType[T]) {
77
if (isHeadless()) return
78
79
+ // Early return to disable event tracking
80
+ return
81
+
82
const body = {
83
type,
84
0 commit comments