Browser Examples
Location:/examples/browser-test.html
Demonstrates:
- SDK initialization
- User identification
- Event tracking
- Page tracking
- Interactive testing UI
- Open
examples/browser-test.htmlin a browser - Enter your API key
- Test different tracking methods
Location:
/examples/browser-test-dev.html
Pre-configured example for development:
- Uses dev API endpoint
- Includes test API key
- Ready to test immediately
Node.js Examples
Location:/examples/node-test.js
Demonstrates:
- SDK initialization
- User identification
- Event tracking
- Page and screen tracking
- Group tracking
- Proper shutdown with flush
Test Server
Location:/examples/test-server.js
Local HTTP server to inspect requests:
- Logs all incoming requests
- Shows request headers and body
- Useful for debugging