Installing and Configuring Inspectlet

    The Install Code

    Inspectlet's Javascript code is asynchronous, which means it does not block your site while it does its own work. The embed code is designed not to slow down your site. After adding a site in your Dashboard, click the blue wrench icon in the Actions column that says "Edit this site's settings". In the Edit Site page, click on the link that says "Get Install Code" on the top right.

    Your code should look something like this:

    <!-- Begin Inspectlet Embed Code -->
    <script type="text/javascript" id="inspectletjs">
    (function() {
    window.__insp = window.__insp || [];
    __insp.push(['wid', 12345678]);
    var ldinsp = function(){ if(typeof window.__inspld != "undefined") return; window.__inspld = 1; var insp = document.createElement('script'); insp.type = 'text/javascript'; insp.async = true; = "inspsync"; insp.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://' + Math.floor(new Date().getTime()/3600000); var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(insp, x); };
    setTimeout(ldinsp, 0);
    <!-- End Inspectlet Embed Code -->

    Where Does the Install Code Go?

    The script provided by Inspectlet (look above for an example) should be placed somewhere in your site's HTML. Inspectlet is loaded asynchronously in a non-blocking way so it doesn't slow down your site. If you're having trouble installing Inspectlet on your site, send us an email and we'd be happy to help!

    Optional Variables

    The embed code allows you to specify variables that change Inspectlet's behavior. Your variables go after the first call to __insp.push.

    The following variables are available:

    • debug (true/false) - Put Inspectlet in Debug mode so it prints messages to the Console that can be helpful during development or working with Custom Metrics.

    Example usage:

    __insp.push(['debug', true]);

    Place this snippet after the main Inspectlet embed code.

    Handling Sensitive Data

    In order to make sure that Inspectlet does not capture private or sensitive data in its screen captures, add the inspectletIgnore class to inputs. Please note that this class is not needed for password fields. Inspectlet ignores those automatically. Any fields that Inspectlet ignores are never read, therefore the data is not transmitted to our servers. For example, the following credit card input field is tagged as sensitive and will not be recorded:

    <input type="text" class="inspectletIgnore" name="ccnumber" />

    2018 Inspectlet.