Required Settings
These settings must be provided for Rehearsals to function:string
required
Your project API key (starts with
dp_proj_)Get this from your Rehearsals Dashboardstring
required
Your organization ID (starts with
dp_org_)Get this from your Rehearsals DashboardOptional Settings
User Identification
In order for Rehearsals to automatically find preferential data, we need to identify customers and match them against our Rehearsals internal database. This enables our AI to provide personalized insights and identify user-specific patterns. You can identify customers in two ways:- Visual Events - Rehearsals can automatically extract user information from your UI (e.g., elements displaying user emails or names)
- Programmatic Identification - Send user data directly using the Identity API for more control
Identity API
Learn how to identify users and track behavior across sessions and devices
Quick Example
- Track user behavior across multiple sessions and devices
- See what users did before they logged in
- Build comprehensive user profiles with behavioral insights
Cross-Domain Tracking
string
default:"null"
Set to share session IDs across subdomains (e.g.,
.example.com)When set, sessions will persist as users navigate across all subdomains.Example: Cross-Subdomain Tracking
If you have multiple subdomains likeapp.yoursite.com, blog.yoursite.com, and shop.yoursite.com, you can track users across all of them:
The
cookieDomain must start with a dot (.) to work across subdomains.Configuration Example
Here’s a complete configuration example with all available options:Content Security Policy (CSP)
If your site uses Content Security Policy, add these directives:Example CSP Header
Next Steps
Privacy Controls
Learn how to protect sensitive user data
Identity API
Identify users and track behavior across sessions
