I was looking for the doc on prebid/Prebid.js#1011 at https://docs.prebid.org/dev-docs/publisher-api-reference.html#module_pbjs.enableAnalytics and it just refers one on how to build an analytics module. I cannot see the sampling function documented, but it seems like this should have been the place