How to use the mwp-tracking-plugin/lib/util/clickWriter function in mwp-tracking-plugin

To help you get started, we’ve selected a few mwp-tracking-plugin examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github meetup / meetup-web-platform / packages / mwp-store / src / browser / index.js View on Github external
export const clickTrackEnhancer = createStore => (
	reducer,
	initialState,
	enhancer
) => {
	const store = createStore(reducer, initialState, enhancer);
	const clickTracker = getClickWriter(store);
	document.body.addEventListener('click', clickTracker);
	document.body.addEventListener('change', clickTracker);

	return store;
};

mwp-tracking-plugin

Data collection for MWP apps, including activity and click tracking

MIT
Latest version published 2 years ago

Package Health Score

39 / 100
Full package analysis

Similar packages