Javascript Integration

Client Side Integration

Integrate the Tutelar JS SDK to your website.

Step 1

Just copy the below snippet and paste it before closing of head tag in your html.

<script type="text/javascript" src="https://cdn.tutelar.io/js/v1/client"></script>

Step 2

Call the below method in your script to initialise the Tutelar SDK to get client details.

 var tutelar = new Tutelar({"public_key" : "tutpk_xxxxxxxxx"});

You can get your Public key from the Client Dashboard from Access Settings.

Step 3

Call the below method in your script to get client details.

tutelar.getClientDetails();

Last updated