How to use the analytics.js.track function in analytics

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

github nfl / react-metrics / examples / vendors / GoogleAnalytics.js View on Github external
_track(eventName, params) {
        if (eventName === "pageView") {
            analytics.page(params.category, params);
            return;
        }
        analytics.track(eventName, params);
    }
    /**
github nfl / react-metrics / examples / vendors / GoogleTagManager.js View on Github external
_track(eventName, params) {
        if (eventName === "pageView") {
            analytics.page(params.category, params);
            return;
        }
        analytics.track(eventName, params);
    }
    /**

analytics

Lightweight analytics library for tracking events, page views, & identifying users. Works with any third party analytics provider via an extendable plugin system.

MIT
Latest version published 6 months ago

Package Health Score

85 / 100
Full package analysis

Similar packages