Skip to main content
Use PageTracker Instead for Most CasesFor most tracking scenarios, PageTracker is the recommended approach as it integrates better with Permutive’s standard events and provides richer insights. Use EventTracker only for specific use cases where PageTracker doesn’t fit.

Valid Use Cases

Event Properties

Comparison

When to Use Which?

EventTracker should be used only for:
  • Standalone events not associated with a page or screen
  • Button clicks or interactions not tied to page views
  • Background events (app lifecycle, notifications)
  • Form submissions without page context
  • Lightweight events without engagement tracking needs
Default to PageTracker for most tracking needs. Most customer implementations should primarily use PageTracker with EventTracker reserved for specific cases.

Basic Usage

Creating an EventTracker

EventTracker is lightweight and can be created anytime you need to track a standalone event.

Tracking an Event


Valid Use Cases


Invalid Use Cases (Use PageTracker Instead)

❌ Don’t: Track Screen Views with EventTracker

✅ Do: Use PageTracker for Screen Views


Event Properties

Events can include structured properties. See Event Properties Guide for complete documentation.

Example


Troubleshooting

Events Not Accepted

Problem: Events showing as rejected in logs. Cause: Event schema doesn’t match dashboard configuration. Solution:
  1. Verify event name matches dashboard (case-sensitive)
  2. Check property names and types match schema
  3. See Common Errors

Should I Use EventTracker or PageTracker?

Ask yourself:
  • Is this a page or screen the user is viewing? → Use PageTracker
  • Do I need to track engagement time or scroll depth? → Use PageTracker
  • Do I want contextual cohorts for this content? → Use PageTracker
  • Is this a standalone action/event? → Use EventTracker
When in doubt, use PageTracker.

Comparison: EventTracker vs PageTracker


Best Practices

  • Use EventTracker for truly standalone events
  • Use EventTracker for background/system events
  • Prefer PageTracker for user-facing content
  • Include relevant event properties
  • Follow your event schema exactly

Page Tracking

Recommended primary method

Event Properties

Add structured data to events

Quick Start Guide

Get started with the SDK

Video Tracking

Track video content

Issues

Solve common issues

API Reference

For complete API documentation, see the Javadocs.

EventTracker Interface

  • track(eventName: String) - Track event without properties
  • track(eventName: String, properties: EventProperties?) - Track event with properties

Creating EventTracker

  • Permutive.eventTracker() - Create an EventTracker instance