Skip to main content

Track Events

Oppla provides comprehensive event tracking capabilities including standard events, feature flag interactions, experiment conversions, and automation triggers. All events are automatically enriched with user context, IP geolocation, and session data.

Using Data Attributes

Track events by adding data attributes to your HTML elements:

Using JavaScript

Track events programmatically using the Oppla object:

Event Properties

Add detailed properties to your events:

Standard Event Types

Page Views

Track page views with automatic enrichment:

User Actions

Track user interactions:

E-commerce Events

Track e-commerce activities:

Feature Flag Events

Track feature flag exposures and interactions:

Experiment Events

Track experiment exposures and conversions:

Automation Trigger Events

Trigger automated workflows based on user behavior:

Cross-Product Tracking

Track users across multiple products:

User Identification Events

Track user identity and properties:

Performance Tracking

Monitor application performance:

Event Batching

Oppla automatically batches events for performance:

Important Notes

  1. Automatic Enrichment:
    • All events include timestamp, session ID, and user context
    • IP geolocation is automatically added via ipapi.co
    • Device and browser information is captured
  2. Data Types:
    • JavaScript method supports all data types
    • HTML attributes are converted to strings
    • Nested objects and arrays are supported
  3. Privacy:
    • Never include passwords or sensitive data
    • PII should be hashed when necessary
    • Respect user privacy preferences

Best Practices

Naming Conventions

Event Properties

Error Tracking

Next Steps

Feature Flags

Control features and track adoption

Experiments

Run A/B tests and track conversions

Automation Triggers

Automate workflows based on events

Sessions

Understand session tracking