
Company News
Jerod Santo Joins Socket as Head of Media
Allow myself to introduce... myself.
analytics-plugin-trackable-min
Advanced tools
Fire events on window enter and window leave events
npm install analytics
npm install analytics-plugin-window-events
After installing the plugin, the windowLeft and windowEnter events will fire.
You can listen to these events via additional plugins or with .on & .once listeners.
import Analytics from 'analytics'
import windowEventsPlugin from 'analytics-plugin-window-events'
/* Example plugin that listener to window */
const customWindowListenerPlugin = {
NAMESPACE: 'custom-window-listener-plugin',
windowEnter: () => {
console.log('Window entered do something via plugin')
},
windowLeft: () => {
console.log('Window left do something via plugin')
}
}
const analytics = Analytics({
app: 'my-app',
plugins: [
windowEventsPlugin(),
customWindowListenerPlugin
]
})
analytics.on('windowEnter', () => {
// do stuff when visitor enters window
})
analytics.on('windowLeft', () => {
// do stuff when visitor leaves window
})
FAQs
Trackable Plugin
The npm package analytics-plugin-trackable-min receives a total of 24 weekly downloads. As such, analytics-plugin-trackable-min popularity was classified as not popular.
We found that analytics-plugin-trackable-min demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Allow myself to introduce... myself.

Research
/Security News
A Twitch browser extension on Chrome and Firefox forwards users’ live OAuth session tokens through proxies controlled by a Russian bot service.

Security News
Anthropic found biased reasoning and recklessness drove Claude Mythos 5 to publish malware on PyPI and compromise a security vendor.