Skip to main content
An event is a single thing a visitor did — a page view, a click, a form submit, a purchase. Orwel captures events two ways: automatically (page views, clicks, scrolls, errors) and explicitly with a one-line call. Every event is tied to a visitor and a session.

The four primitives

// a named event with any properties
orwel.track('quote_created', { amount: 1200, currency: 'MXN' });

// attach identity + traits to the current visitor
orwel.identify({ email: 'user@acme.com', plan: 'pro' });

// a conversion / lead (its own record, attributed to the visitor)
orwel.conversion('signup', { source: 'landing' });

// per-session state (utm, current screen, cart value, …)
orwel.session({ currentScreen: 'checkout', cartTotal: 99.9 });

Automatic capture

With autoEventDetection and autoMonitor enabled at init, the SDK captures common signals with no extra code:

Navigation & interaction

page_view, click, scroll, hover, search, select_content — including SPA route changes.

Technical & performance

js_error, network_request_failed, console errors — plus navigation/resource timings attached to the session.
Elements with a data-orwel-section attribute are also tracked automatically — total visible time, max visibility %, and interaction count are rolled up into session.sectionEngagements (no extra events).
orwel.init({
  apiKey: 'orwel_pk_...',
  autoMonitor: true,        // errors, performance, web-vitals
  autoEventDetection: true, // page_view / click / scroll / element_visible
});

Custom events & the catalog

Orwel is flexible by default: send any event code that fits your product (deal_created, invoice_stamped) and it’s captured. On top of that sits a curated semantic catalog — a shared taxonomy of standard events (below) that powers the behavioral engine, benchmarks, and prebuilt insights.
Event codes are lowercase_snake_case, ≤ 50 characters, letters / numbers / underscores. Keep them verb-based and stable (quote_sent, not QuoteSent2).

Semantic event catalog

The standard events Orwel understands out of the box, by category. You can always send custom codes alongside these.
CodeDescription
loginUser logged into their account.
logoutUser logged out of their account.
signupUser created a new account.
complete_profileUser completed their profile information.
verify_emailUser verified their email address.
join_groupUser joined a group or community.
CodeDescription
form_focusUser focused on a form input field.
form_inputUser entered data in a form field.
form_changeUser changed a form field value.
form_submit_attemptUser attempted to submit the form.
form_submit_successForm submitted successfully.
form_submit_errorForm failed to submit (validation or API error).
form_abandonUser started the form but left before submitting.
CodeDescription
generate_leadA new lead was generated. (high-value)
waitlistNew user registered to a waitlist. (high-value)
conversion_customA custom conversion event occurred.
milestone_reachedUser reached a specific milestone.
shareUser shared content externally.
view_promotionUser viewed a promotion.
select_promotionUser selected a promotion.
optimize_experiment_impressionUser was exposed to an A/B test variant.
optimize_personalization_impressionUser received a personalized experience.
CodeDescription
view_itemUser viewed a specific product.
view_item_listUser viewed a list of products.
select_itemUser selected an item from a list.
add_to_cartUser added a product to the cart.
remove_from_cartUser removed a product from the cart.
view_cartUser viewed their shopping cart.
begin_checkoutUser started the checkout process.
checkout_progressUser proceeded to the next checkout step.
set_checkout_optionUser selected a checkout option (e.g. shipping).
add_shipping_infoUser entered shipping information.
add_payment_infoUser provided payment details.
purchaseUser completed a purchase. (high-value)
refundA refund was issued for a purchase.
CodeDescription
chat_openedUser opened a chat window.
chat_message_sentUser sent a message in chat.
CodeDescription
video_playUser started a video.
video_progressUser reached a certain point in a video.
video_completeUser finished watching a video.
audio_playUser started an audio file.
CodeDescription
notification_receivedA push notification was received.
notification_clickedUser clicked on a notification.
CodeDescription
feedback_submittedUser submitted feedback. (high-value)
survey_submittedUser submitted a survey. (high-value)
CodeDescription
earn_virtual_currencyUser earned virtual currency.
spend_virtual_currencyUser spent virtual currency.
CodeDescription
js_errorA JavaScript error occurred on the client.
exceptionAn exception or error occurred in the app.
network_request_failedA network request failed.
timing_completeA timed operation completed.
file_downloadUser downloaded a file.

Next steps

Feature Tracking

Map events to product features and measure adoption.

Conversions

Capture leads and goals, attributed across sessions.

Experiments

A/B test with a single call.

SDK Reference

Every method and option.