Google Analytics
Integrating LogRocket with Google Analytics
Add a LogRocket session URL to Google Analytics as a custom variable. Add this code anywhere in your app, after LogRocket and Google Analytics have been loaded.
LogRocket.getSessionURL(function (sessionURL) {
ga('send', {
hitType: 'event',
eventCategory: 'LogRocket',
eventAction: sessionURL,
});
});
Updated almost 8 years ago