Google Analytics

Integrating SessionStack with Google Analytics

Add a SessionStack recording URL to Google Analytics as a custom variable.

Add this code anywhere in your app, after SessionStack and Google Analytics have been loaded.

sessionstack('getSessionId', function(sessionId) {
    if (sessionId) {
        ga('send', {
            hitType: 'event',
            eventCategory: 'SessionStack',
            eventAction: 'https://app.sessionstack.com/player/#/sessions/' + sessionId,
        });
    }
});