Skip to main content

Components

MutaRoot

The root component that initializes the SDK and manages placements.

Props

Methods

Muta.displayPlacement()

Displays a placement in a modal overlay.

Options

Muta.on()

Subscribe to Muta events.

Parameters

Returns

An object with a remove method to unsubscribe from the event.

Types

MutaEvent

Base interface for all Muta events.

FlowStartedEvent

ScreenViewedEvent

FlowCompletedEvent

FlowAbandonedEvent

CustomEvent

Custom events are configured in the Muta web editor using the “Emit Event” behavior and can have any name you choose (e.g., 'signup_clicked', 'plan_selected', 'survey_completed').

ErrorEvent

Example Usage