Initialize LogRocket and start recording sessions

Call init() with your appID to configure and start LogRocket. You can find your appID on https://app.logrocket.com under Settings > Project Setup.

LogRocket.init(YOUR_APP_ID);

🚧

Call init as early on the page as possible. Some recording data may be lost if it is called too late.

This function takes an optional second parameter that can be used to affect recording behavior. The options are listed in detail below.