Add a Product
Get started with Oppla analytics in just a few simple steps. Track user behavior, feature usage, and experiments with a single lightweight script.Quick Start
Step 1: Get Your Product Credentials
- Log into your Oppla Dashboard
- Navigate to My Products → Add Product
- Click Add Product
- Copy your
Product ID
andAccount ID
Step 2: Add the Tracking Script
Add this script to your product’s<head>
section:
- Page views
- User sessions
- Click events (with
data-oppla-event
attributes) - Feature flag usage
- Experiment participation
Advanced Features
Track Custom Events
Track button clicks, form submissions, or any custom event:Identify Users
Track logged-in users across sessions:Feature Flags
Control feature visibility based on user segments:A/B Testing
Run experiments to optimize your user experience:Configuration
Configuration Options
Customize tracking behavior with optional attributes:JavaScript API
Once installed, these methods are available globally:Verification
Testing the Installation
-
Check the Console
- Open browser Developer Tools (F12)
- Type
window.oppla
in the Console - You should see the Oppla object with available methods
-
Check Network Activity
- Go to Network tab in Developer Tools
- Look for requests to
tracker.oppla.ai
- Verify requests to
/api/send
are successful (200 status)
-
Check Your Dashboard
- Visit your Oppla Dashboard
- Navigate to Analytics → Real-time
- You should see your current session
Common Issues
window.oppla is undefined
: Ensure the script is in the<head>
section and has loaded- No data in dashboard: Verify your Product ID and Account ID are correct
- Blocked by ad blocker: Ask users to whitelist
tracker.oppla.ai
- Not tracking localhost: Localhost tracking is disabled by default for development