These docs are for v1.0. Click to read the latest docs for v3.0.

Set an appID and start a recording a session.

Call init with your appID to configure and start LogRocket. You can find your appID on https://app.logrocket.com.

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 a second parameter of options to affect recording behavior. These are listed in detail below: