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>
| Param | Type | Description |
|---|---|---|
siriusCapping.config.brand | string | A brand uuid that we’ll give you |
siriusCapping.config.userId | string | The ID of the user, that you can write encrypted or hashed |
Note
Declaring siriusCapping.config.brand and siriusCapping.config.userId will automatically launch simultaneous readings tracking.
If you don’t want to launch Capping, do not define these variables and/or do not insert the JavaScript SDK.