Quickstart
Getting started is easy:
- Visit https://app.logrocket.com to get an app ID.
 - Install LogRocket via NPM or script tag. 
LogRocket.init()must be called client-side, not server-side. 
$ npm i --save logrocket
// Code:
import LogRocket from 'logrocket';
LogRocket.init(YOUR_APP_ID);Add to your HTML:
<script src="https://cdn.lgrckt-in.com/LogRocket.min.js" crossorigin="anonymous"></script>
<script>window.LogRocket && window.LogRocket.init(YOUR_APP_ID);</script>- (Optional) Install plugins for deeper integrations with your stack:
 
Looking to install LogRocket on a native mobile app?Get started here
Updated 28 days ago
What’s Next
