When to Use Backend APIs
Perfect for server-side tracking:- User registration and authentication events
- Subscription and payment processing
- Admin actions and system events
- Webhook processing
- Background job events
- Any event that doesn’t depend on the user’s browser
- ✅ Most reliable - no client-side dependencies
- ✅ Secure - API keys never exposed to browsers
- ✅ Server context - automatic IP, user agent detection
- ✅ Works with any backend language
Quick Setup (5 minutes)
1
Get your API key
- Sign up at userboo.st
- Go to Settings → API Keys
- Copy your Server-side API key (starts with
ub_live_
)
2
Choose your integration method
Pick the approach that fits your stack:
- Node.js SDK
- REST API
Recommended for Node.js applications
3
Track your first event
- Node.js SDK
- REST API
4
Verify it's working
- Go to your UserBoost dashboard
- Navigate to Events → Live Stream
- Your test event should appear within 30 seconds
Enable debug mode during development to see detailed logs in your console.
Language Examples
UserBoost works with any language that can make HTTP requests. Here are quick examples:- Node.js
- Python
- Go
- PHP
- Ruby
Common Event Patterns
Track these key events to build effective user journey funnels:Authentication Events
Onboarding Milestones
Subscription Events
Environment Setup
Store your API key securely using environment variables:Never commit API keys to version control. Always use environment variables and add
.env
files to your .gitignore
.Testing & Debugging
Enable Debug Mode (Node.js SDK)
Test Event
Common Issues
Events not appearing in dashboard
Events not appearing in dashboard
Check these common causes:
- API key format (must start with
ub_live_
) - Required
user.id
field is missing - Network connectivity issues
- Wrong environment (test vs live keys)
401 Unauthorized error
401 Unauthorized error
Network timeout errors
Network timeout errors
- Ensure your server can reach
api.userboo.st
- Check firewall settings
- Verify SSL/TLS configuration
What’s Next?
Track Events
Learn how to track user actions and milestones effectively.
API Reference
Complete API documentation with all available endpoints.