How to use the logrocket.track function in logrocket

To help you get started, we’ve selected a few logrocket 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 oughtinc / mosaic / client / src / App.tsx View on Github external
);
  }
}

const Routes = () => (
  <div>
    
    
    
  </div>
);

LogRocket.init(appConfig.logrocket_id);
const environment = process.env.NODE_ENV || "development"; // "development" or "production"
console.log("Client environment: ", process.env.NODE_ENV);
LogRocket.track(environment);

const store = createStore(
  combineReducers(
    {
      blocks: blockReducer,
      blockEditor: blockEditorReducer,
    } as any
  ),
  composeWithDevTools(applyMiddleware(thunk, LogRocket.reduxMiddleware()))
);

class App extends React.Component {

  public render() {
    return (

logrocket

JavaScript SDK for [LogRocket](https://logrocket.com/)

MIT
Latest version published 2 months ago

Package Health Score

68 / 100
Full package analysis