Initialize SDK and get device details
To initialise the SDK add the below line of code with the public key you retrieved from Sense client panel. If you don't have a public key create new one and call that below function.
Read our documentation for more information how to use our sense.
copy-icon
<script type="text/javascript" src="https://cdn.gosense.ai/js/v1/sense"></script>
<script>
    new Sense({
        apiKey:"YOUR_PUBLIC_KEY",
        senseInfo:false,
        allowGeoLocation:true,
        tag: "YOUR_CUSTOM_TAG"
    }).then((response) => {
        console.log(response)
    }).catch((error) => {
        console.log(error)
    });
</script>
Sample Program
Here you can find the demonstration to do the integration.
Read our documentation for more information how to use our sense.
copy-icon
<!DOCTYPE html>
<html>
    <head>
        <script type="text/javascript" src="https://cdn.gosense.ai/js/v1/sense"></script>
    </head>
    <body>
        Sense JS - SDK
        <script>
            new Sense({
                apiKey:"YOUR_PUBLIC_KEY",
                senseInfo:false,
                allowGeoLocation:true,
                tag: "YOUR_CUSTOM_TAG"
            }).then((response) => {
                console.log(response)
            }).catch((error) => {
                console.log(error)
            });
        </script>
    </body>
</html>