Installing Inspectlet's Tracking JS
You can get your JS code by clicking "Get Code" from the Dashboard. It should look something like this:
(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: 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.
Check if it it's installed correctly
To debug whether Inspectlet is installed and functioning correctly, append ?inspectlet_diagnostics=true to your website URL to bring up the diagnostics console.
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!