ROAARRR logo

API Reference

init(apiKey, config?)

Initializes the analytics library with your API key. Automatically tracks page views and navigation changes.

analytics.init('YOUR_API_KEY');

Parameters

  • apiKey (string): Your project API key from ROAARRR dashboard
  • config (object, optional): Configuration options

identify(userData)

Identifies a user. Requires an 'identification' field in the userData object.

analytics.identify({
  identification: 'user-uuid-123'
});

Parameters

  • userData (object): User data object
  • userData.identification (string): Unique user identifier (required)

funnel(eventName, eventData?)

Tracks a custom event with optional event data.

analytics.funnel('button_click', {
  buttonName: 'signup',
  page: 'homepage'
});

Parameters

  • eventName (string): Name of the event to track
  • eventData (object, optional): Additional data to attach to the event

Growth made simple.
Know your numbers.