Installing Inspectlet

Installing Inspectlet requires placing a simple Javascript code into your website. This requires little to no technical skill and can be done within a few minutes. Once installed, Inspectlet will immediately start recording user sessions and generating heatmaps out of the box, and this functionality can be extended with a few other steps covered below.

Installing Inspectlet's Tracking JS

Installing Inspectlet's tracking javascript will immediately get you up and running straight out of the box with no further integration required. Inspectlet's Javascript code is asynchronous, which means it doesn't affect your site's load performance.

You can get your JS code by clicking "Get Code" from the Dashboard. It should look something like this:

<!-- Begin Inspectlet Embed Code -->
<script type="text/javascript" id="inspectletjs">
window.__insp = window.__insp || [];
__insp.push(['wid', 12345678]);
(function() {
function __ldinsp(){var insp = document.createElement('script'); insp.type = 'text/javascript'; insp.async = true; insp.id = "inspsync"; insp.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://cdn.inspectlet.com/inspectlet.js'; var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(insp, x); };
document.readyState != "complete" ? (window.attachEvent ? window.attachEvent('onload', __ldinsp) : window.addEventListener('load', __ldinsp, false)) : __ldinsp();

})();
</script>
<!-- End Inspectlet Embed Code -->

(everyone's code is different, please get your personal code from the dashboard)

There are a few options for installing the code:

Option 1: Copy the code directly into your HTML 

The script provided by Inspectlet (look above for an example) should be placed anywhere in your site's HTML (preferrably in the <HEAD> section). 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!

Option 2: Installation with Google Tag Manager

Inspectlet fully supports installation via Google Tag Manager, simply drop in the Inspectlet code in Google Tag Manager and set it to trigger on your site. For more information, check out our Google Tag Manager installation guide.

Option 3: Simple Installation via Segment

If you use Segment, the folks there have made installing Inspectlet very easy: simply enable Inspectlet from Segment and add in your site's website ID.

Option 4: Installing on WordPress with the WordPress Plugin

We have a WordPress plugin that'll take care of placing the code in your site, please get it from here: Inspectlet WordPress Plugin.

 

Hooray! Inspectlet is up and running! Now here are a few recommendations to get the most out of Inspectlet:

Send in any session metadata or events with tagging (optional)

Tags let you send in any metadata you have about the user or session to be paired with the session recording for viewing and searching. This lets you track any custom events, search for sessions by any custom trait (email/username/points/category/etc), integrate Inspectlet with other services, and much more.

To start sending tags in, check out the tagging documentation.

Identify users by email address or nickname (optional)

By identifying users in Inspectlet, with one line of code you can associate each session recording with a meaningful nickname (name, email address, database ID, etc) that identifies the user.

To start identifying users, check out our identifying users documentation.

Mark any sensitive information (optional)

After installation, Inspectlet will start recording all page content and user input. You can mark specific input fields and HTML content in your site as sensitive to prevent that data from being sent to Inspectlet: Handling Sensitive Data.

If you need to get up and running quickly and still need to hide sensitive information, you can enable the "censor all input fields on all pages" site setting, though this will hide a lot of useful data!