Loading Revisit...

Getting Started

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

  1. Log into your Revisit dashboard
  2. Navigate to your project settings
  3. 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:

  1. Open your website's HTML files in a text editor
  2. Find the <head> section
  3. Paste the tracking script just before the closing </head> tag
  4. Save the file and upload it to your web server
  5. 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)

  1. Go to Appearance → Theme Editor in your WordPress admin
  2. Select header.php
  3. Find the </head> tag
  4. Paste the tracking script just before this tag
  5. Click Update File

Method 2: Using a Plugin

  1. Install a plugin like "Insert Headers and Footers" or "Code Snippets"
  2. Go to the plugin settings
  3. Paste the tracking script in the "Header" section
  4. Save the changes

Google Tag Manager Installation

For websites using Google Tag Manager:

  1. Log into your Google Tag Manager account
  2. Select your website container
  3. Click Add a new tag
  4. Choose Custom HTML as the tag type
  5. Paste the tracking script in the HTML field
  6. Set the trigger to All Pages
  7. Name your tag (e.g., "Revisit Tracking")
  8. Click Save and Submit your changes
  9. Publish the container

Note: GTM adds a small delay to script loading, but this won't affect functionality.

Step 3: Verify Installation

  1. Visit your website in a new browser tab
  2. Open your browser's Developer Tools (F12)
  3. Go to the Network tab
  4. Refresh the page and look for requests to revisit-recorder.iife.js
  5. 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