Disabling for certain users

How to prevent LogRocket from recording sessions for specific users

Many users choose to disable LogRocket for certain users (such as internal employees) to limit session usage. To do this, simply do not call init() during development:

import LogRocket from 'logrocket';

if (!userIsAdmin) {

That's it! LogRocket will only record sessions for which LogRocket.init() is called.