Skip to main content

Tracker

Learn how to use Oppla’s tracking functionality to monitor user behavior and collect analytics data.

Basic Tracking

Initialize Tracker

Initialize the tracker with your project ID:

Track Page Views

Track page views automatically or manually:

Track User Actions

Track user interactions:

Track Outbound Clicks

Track clicks on external links:

Advanced Tracking

Track Custom Events

Track custom events with detailed properties:

Track User Properties

Track user properties and traits:

Data Attributes

Track with Data Attributes

Use data attributes for automatic tracking:

Best Practices

  1. Be Consistent: Use consistent event names and properties
  2. Be Specific: Include relevant context in event properties
  3. Be Organized: Group related events with similar naming patterns
  4. Be Careful: Don’t include sensitive user data in events

Common Issues

Events Not Tracking

  • Verify initialization
  • Check event names and properties
  • Ensure proper timing of tracking calls
  • Check for console errors

Data Not Appearing

  • Check network requests
  • Verify project ID
  • Check for data validation errors
  • Ensure proper event structure

Outbound Clicks Not Tracking

  • Verify outbound click configuration
  • Check domain list
  • Ensure proper link attributes
  • Check for JavaScript errors

Next Steps

Sessions

Learn about session tracking

Data Tags

Organize your tracking data