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



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: