Skip to content

Commit

Permalink
Connect GA to Logrocket
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderwapstra committed Mar 16, 2021
1 parent 817cd2e commit 5ea7169
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ import { typography } from './styles/typography';
LogRocket.init('bhxbik/detune');
ReactGA.initialize('UA-167595336-1');

// Connect GA to LogRocket
LogRocket.getSessionURL(function (sessionURL) {
ReactGA.event({
category: 'LogRocket',
action: sessionURL,
});
});

const GlobalStyle = createGlobalStyle`
body {
font-family: 'Nunito', sans-serif;
Expand Down

0 comments on commit 5ea7169

Please sign in to comment.