Skip to main content

Step 1: Get Your Credentials

First, sign up for a Rehearsals account to obtain your credentials. You’ll need an email address and the website URL where you’d like to install Rehearsals. New signups receive a 30-day free trial.

Sign Up for Rehearsals

Create your free account and get your API credentials
After you have successfully created your account and verified your email address, you will receive the following:
  • API Key (format: dp_proj_xxxxx)
  • Organization ID (format: dp_org_xxxxx)

Step 2: Add the Script

Add the following code to your website’s <head> tag:
<!DOCTYPE html>
<html>
<head>
  <title>My Website</title>
  
  <!-- Rehearsals Configuration -->
  <script>
    window.deepPredictionSettings = {
      apiKey: 'YOUR_API_KEY',        // Required: Your project API key
      organizationId: 'YOUR_ORG_ID'  // Required: Your organization ID
    };
  </script>
  <script src="https://app.runrehearsals.com/recorder.js" async></script>
  
  <!-- Rest of your head content -->
</head>
<body>
  <!-- Your website content -->
</body>
</html>
Replace YOUR_API_KEY and YOUR_ORG_ID with your actual credentials. Go to Settings → Project in the Rehearsals dashboard to find these keys.
Note: You can also place the script in your footer—it will still work, but placing it in the <head> tag provides better performance.

Step 3: Verify Installation

That’s it! Rehearsals will automatically start recording sessions for every visitor on your website. To verify the installation is working:
  1. Visit Your Website: Navigate to the website where you installed Rehearsals
  2. Browse Around: Click around and navigate through your site for 60-90 seconds
  3. Check Your Dashboard: Go back to the Rehearsals dashboard
  4. View Session Replays: Navigate to the Data folder and look at Session Replays—you should see your session appear there
Having trouble? Check out our troubleshooting guide for help with common installation issues.

Next Steps