kapa.ai My site gets a significant volume of traffic, as such, I don't want to run a sample of session recording at 1%, but rather a fraction of this. I would start at 0.5%, does the record_sessions_percent property of the SDK initialization script support decimals? It doesn't appear to in testing.
Based on the knowledge sources available, the record_sessions_percent option is described as: "Percentage of SDK initializations that will qualify for replay data capture. A value of '1' = 1%." [Init Options]
The documentation does not explicitly state whether decimal values (e.g., 0.5) are supported for this parameter. Since you've already tested it and found it doesn't appear to work with decimals, this aligns with the fact that the docs only reference whole number examples.
The knowledge sources do not contain enough information to confirm or deny decimal support for record_sessions_percent on the web SDK. I'd recommend reaching out to Mixpanel Support directly to clarify whether sub-1% decimal values are supported, or to request that feature if it isn't.
As a potential workaround in the meantime, you could use the manual capture approach โ keeping record_sessions_percent at 0 and programmatically calling mixpanel.start_session_recording() only for a fraction of users based on your own sampling logic in your application code. [Capturing Replays]
โน๏ธย Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.
it should work with decimals!
Thanks DJ S., I'll test again then!
