Welcome! This guide walks you through installing Revisit's tracking script on your website. The script is lightweight, loads asynchronously, and won't affect your site's performance.
Step 1: Get Your Tracking Script
- Log into your Revisit dashboard
- Navigate to your project settings
- Copy the tracking script (it looks like the example below)
<!-- Revisit Session Recording Script -->
<script>
(function() {
var script = document.createElement('script');
script.src = 'https://script.revisit.test/revisit-recorder.iife.js';
script.async = true;
script.setAttribute('data-api-key', 'rv_your_api_key_here');
script.setAttribute('data-domain', 'yourdomain.com');
document.head.appendChild(script);
})();
</script>
Step 2: Install the Script
Choose the installation method that works best for your website:
Manual Installation
For websites where you have direct access to the HTML source code:
- Open your website's HTML files in a text editor
- Find the
<head> section - Paste the tracking script just before the closing
</head> tag - Save the file and upload it to your web server
- The script will automatically start recording sessions
Tip: Install on all pages where you want to track user sessions.
WordPress Installation
For WordPress websites, you have several options:
Method 1: Theme Header (Recommended)
- Go to Appearance → Theme Editor in your WordPress admin
- Select
header.php - Find the
</head> tag - Paste the tracking script just before this tag
- Click Update File
Method 2: Using a Plugin
- Install a plugin like "Insert Headers and Footers" or "Code Snippets"
- Go to the plugin settings
- Paste the tracking script in the "Header" section
- Save the changes
Google Tag Manager Installation
For websites using Google Tag Manager:
- Log into your Google Tag Manager account
- Select your website container
- Click Add a new tag
- Choose Custom HTML as the tag type
- Paste the tracking script in the HTML field
- Set the trigger to All Pages
- Name your tag (e.g., "Revisit Tracking")
- Click Save and Submit your changes
- Publish the container
Note: GTM adds a small delay to script loading, but this won't affect functionality.
Step 3: Verify Installation
- Visit your website in a new browser tab
- Open your browser's Developer Tools (F12)
- Go to the Network tab
- Refresh the page and look for requests to
revisit-recorder.iife.js - Check your Revisit dashboard for new sessions
Next Steps
Once your tracking script is installed and working:
Next Steps
Once your tracking script is installed and working:
Need Help?
If you're having trouble with installation or have questions, our support team is here to help.
Contact Support