Javascript integration

Learn how to integrate and manage Capping using the JavaScript SDK.

Add following lines into your html, just before the closing body tag. This JavaScript SDK integration launch tracking of simultaneous readings, without any blocking.

<script>
  var siriusCapping = window.siriusCapping || {};
  siriusCapping.config = {
    brand: "<BRAND_UUID>", //mandatory
    userId: "<THE_USER_ID>", //mandatory
  };
</script>
<script async src="https://capping.sirius.press/sdk.v1.1.0.js"></script>
ParamTypeDescription
siriusCapping.config.brandstringA brand uuid that we’ll give you
siriusCapping.config.userIdstringThe ID of the user, that you can write encrypted or hashed