Initialize SDK

Initialize LogRocket and start recording sessions

Call init() with your appID to configure and start LogRocket. You can find your appID on under Settings > Project Setup.



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 in their corresponding pages in the JavaScript Web SDK section.