3.2.0 - SessionReplay and AutoCapture setup improvements
Makes setting up Session Replay and Web Analytics easier by adding the plugins
field to StatsigOptions
// ⭐️ New ⭐️
import { StatsigSessionReplayPlugin } from '@statsig/session-replay';
import { StatsigAutoCapturePlugin } from '@statsig/web-analytics';
const myStatsigClient = new StatsigClient(
'client-key',
{ userID: 'a-user' },
{
plugins: [
new StatsigSessionReplayPlugin({
rrwebConfig: { blockClass: 'do-not-record' },
}),
new StatsigAutoCapturePlugin(),
],
},
);
Changelog
@statsig/client-core
@statsig/js-client
@statsig/js-on-device-eval-client
- chore: ensure re-init works after shutdown 5f4cef2
@statsig/js-client
@statsig/session-replay
@statsig/web-analytics
- feat: allow SessionReplay and AutoCapture via StatsigOptions 02c4819
@statsig/react-bindings
- chore: useRef instead of useState for client factory hooks 239dfca