Using Autocapture
Sidecar automatically tracks various web activities, allowing you to create both simple and complex Metrics within Statsig console without writing a line of code. Create a new metric in the Metrics tab on the Statsig console to get started, and read more about the metrics we automatically log in Autocapture on the Web. See Autocapture on the WebUsing the tracking API
You can track events manually for actions that are not autocaptured by the feature described above. To track events back to Statsig, you can callStatsigSidecar.logEvent which takes the same arguments as the Statsig JS SDK as documented here. This method can be called prior to completion of the init routine.
Disabling All Logging
To disable all logging to statsig (both autocapture events and logging who has seen your experiments) append the following query string parameter to the Sidecar script URL:&autostart=0. This may be useful if you’re dealing with GDPR compliance, and you can later re-enable events with client.updateRuntimeOptions({disableLogging: false})