How to use the analytics.js.page 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.

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

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);
    }
    /**