-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow disabling activity tracking actions (close #1161) #1224
Allow disabling activity tracking actions (close #1161) #1224
Conversation
3d53351
to
05bd678
Compare
BundleMonFiles added (6)
Total files change +95.6KB 0% Final result: ✅ View report in BundleMon website ➡️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, this has been requested a lot!
window.clearInterval(callbackConfiguration?.activityInterval); | ||
} | ||
|
||
activityTrackingConfig.configurations[actionKey] = undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering, should we also set activityTrackingConfig.enabled
to false in case there are no more configurations left? From what I can tell it'd be more like a cosmetic change and not have much effect on anything (in which case do we really need the flag?), but wondering if you can see some reason to or considered it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The enabled
flag seems to be mostly used for the activity tracking at the start and between pageviews. It does not have control over the interval/timeouts of the actual pinging.
It was the first thing I tried 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
ed9bbba
to
0b3950a
Compare
Add
disableActivityTracking
anddisableActivityTrackingCallback
to disable the respective activity tracking and activity tracking callbacks from the tracker.