# Event reference

> Every event name the Lemu SDKs send, its constant on each platform, the standard parameters, and how Lemu stores events, properties and context

URL: https://docs.lemuai.com/sdks/events

This page lists the event names every Lemu SDK knows, the constant for each one on each platform, and what Lemu keeps from each event. For the fields an order needs and how revenue and ROI are calculated, see [Standard and conversion events](https://docs.lemuai.com/website-pixel/standard-events).

## How calls are stored

| Call | Stored as |
|---|---|
| `page()` | `PageView`, with the page's `url`, `path` and `title` |
| `screen(name)` | `screen_viewed`, with the screen's `name` in its properties |
| `track(event)` and `purchase()` | The event name: Meta's spelling for a standard event, and lowercase with underscores for any other name |
| `identify()` | Finds or creates the contact (see [Known users](https://docs.lemuai.com/sdks/overview#known-users)). Traits go to the contact, never into event properties |

## Standard events

These are [Meta's standard events](https://developers.facebook.com/docs/meta-pixel/reference), with Meta's names and parameters. Every SDK has a constant for each one.

| Event | JavaScript, React, React Native | Android | iOS, Flutter | Parameters |
|---|---|---|---|---|
| `PageView` | `LemuEvent.PageView` | `LemuEvent.PAGE_VIEW` | `LemuEvent.pageView` | none. On websites, `page()` sends it |
| `ViewContent` | `LemuEvent.ViewContent` | `LemuEvent.VIEW_CONTENT` | `LemuEvent.viewContent` | `content_ids`, `content_category`, `content_name`, `content_type`, `contents`, `currency`, `value` |
| `Search` | `LemuEvent.Search` | `LemuEvent.SEARCH` | `LemuEvent.search` | `search_string`, `content_category`, `content_ids`, `contents`, `currency`, `value` |
| `AddToCart` | `LemuEvent.AddToCart` | `LemuEvent.ADD_TO_CART` | `LemuEvent.addToCart` | `content_ids`, `content_name`, `content_type`, `contents`, `currency`, `value` |
| `AddToWishlist` | `LemuEvent.AddToWishlist` | `LemuEvent.ADD_TO_WISHLIST` | `LemuEvent.addToWishlist` | `content_ids`, `content_name`, `content_category`, `contents`, `currency`, `value` |
| `InitiateCheckout` | `LemuEvent.InitiateCheckout` | `LemuEvent.INITIATE_CHECKOUT` | `LemuEvent.initiateCheckout` | `content_ids`, `content_category`, `contents`, `currency`, `num_items`, `value` |
| `AddPaymentInfo` | `LemuEvent.AddPaymentInfo` | `LemuEvent.ADD_PAYMENT_INFO` | `LemuEvent.addPaymentInfo` | `content_ids`, `content_category`, `contents`, `currency`, `value` |
| `Purchase` | `LemuEvent.Purchase` | `LemuEvent.PURCHASE` | `LemuEvent.purchase` | `value`, `currency` and `order_id` (required), `content_ids`, `content_name`, `content_type`, `contents`, `num_items`. Use `purchase()` |
| `Lead` | `LemuEvent.Lead` | `LemuEvent.LEAD` | `LemuEvent.lead` | `content_category`, `content_name`, `currency`, `value` |
| `CompleteRegistration` | `LemuEvent.CompleteRegistration` | `LemuEvent.COMPLETE_REGISTRATION` | `LemuEvent.completeRegistration` | `content_name`, `currency`, `status`, `value` |
| `Subscribe` | `LemuEvent.Subscribe` | `LemuEvent.SUBSCRIBE` | `LemuEvent.subscribe` | `currency`, `predicted_ltv`, `value` |
| `StartTrial` | `LemuEvent.StartTrial` | `LemuEvent.START_TRIAL` | `LemuEvent.startTrial` | `currency`, `predicted_ltv`, `value` |
| `Schedule` | `LemuEvent.Schedule` | `LemuEvent.SCHEDULE` | `LemuEvent.schedule` | |
| `SubmitApplication` | `LemuEvent.SubmitApplication` | `LemuEvent.SUBMIT_APPLICATION` | `LemuEvent.submitApplication` | |
| `Contact` | `LemuEvent.Contact` | `LemuEvent.CONTACT` | `LemuEvent.contact` | |
| `CustomizeProduct` | `LemuEvent.CustomizeProduct` | `LemuEvent.CUSTOMIZE_PRODUCT` | `LemuEvent.customizeProduct` | |
| `Donate` | `LemuEvent.Donate` | `LemuEvent.DONATE` | `LemuEvent.donate` | |
| `FindLocation` | `LemuEvent.FindLocation` | `LemuEvent.FIND_LOCATION` | `LemuEvent.findLocation` | |

With the website snippet, use the event name itself, for example `lemu("track", "AddToCart", { ... })`. Lemu matches a standard name whatever its case or separators, so `add_to_cart` is stored as `AddToCart`. See [Matching names](https://docs.lemuai.com/website-pixel/standard-events#matching-names).

## Parameters

| Parameter | Type | Meaning |
|---|---|---|
| `value` | number | An amount in major units: `1499.5` is ₹1,499.50. On `AddToCart`, the value of what was added. On `InitiateCheckout`, the checkout total. On `Purchase`, the order total |
| `currency` | string | An ISO 4217 code such as `INR` |
| `order_id` | string | Your id for the order. Lemu counts one conversion per order id, however many sources report it. Meta's Conversions API has the same field |
| `content_ids` | list of strings | Product ids or SKUs |
| `contents` | list of objects | Items, each with `id` and `quantity`, and optionally `item_price`, `title`, `brand` and `category` |
| `content_type` | string | `product` or `product_group` |
| `content_name` | string | A name |
| `content_category` | string | A category |
| `num_items` | integer | The number of items |
| `search_string` | string | What was searched for |
| `predicted_ltv` | number | The expected lifetime value of a subscriber |
| `status` | string | The status of a registration |

You can add your own properties next to these, for example `payment_method` or `coupon`.

The app SDKs take the order id and items as typed arguments to `purchase`: `orderId` and `LemuContent(id, quantity, itemPrice, title)` on Android, iOS and Flutter. They are sent as `order_id` and `contents` with `item_price`.

## Conversion events

A conversion event counts as an order for revenue and ROI. By default that's `Purchase`; you can add others under **Settings → Sending Limits → Conversion events**. Every conversion event needs `value`, `currency` and `order_id`.

Lemu never rejects a conversion event for a missing field. It fixes what it can, counts the rest, and shows the problem on the event in [Recent events](https://docs.lemuai.com/website-pixel/overview#recent-events). See [When a field is missing](https://docs.lemuai.com/website-pixel/standard-events#when-a-field-is-missing).

## App lifecycle events

The app SDKs (Android, iOS, Flutter and React Native) send these for you. They have no Meta equivalent and are never conversions.

| Event | JavaScript (React Native) | Android | iOS, Flutter | When | Properties |
|---|---|---|---|---|---|
| `app_installed` | `LemuEvent.AppInstalled` | `LemuEvent.APP_INSTALLED` | `LemuEvent.appInstalled` | The first launch with the SDK | `version`, `build` |
| `app_updated` | `LemuEvent.AppUpdated` | `LemuEvent.APP_UPDATED` | `LemuEvent.appUpdated` | The first launch after the version or build changed | `version`, `build`, `previous_version`, `previous_build` |
| `app_opened` | `LemuEvent.AppOpened` | `LemuEvent.APP_OPENED` | `LemuEvent.appOpened` | Every launch and every return to the foreground | `from_background`, and `url` when a link opened the app (not on Flutter) |
| `app_backgrounded` | `LemuEvent.AppBackgrounded` | `LemuEvent.APP_BACKGROUNDED` | `LemuEvent.appBackgrounded` | The app goes to the background | |
| `deep_link_opened` | `LemuEvent.DeepLinkOpened` | `LemuEvent.DEEP_LINK_OPENED` | `LemuEvent.deepLinkOpened` | A link opens the app | `url`, `referrer` |
| `screen_viewed` | `LemuEvent.ScreenViewed` | `LemuEvent.SCREEN_VIEWED` | `LemuEvent.screenViewed` | A screen is shown, when you track screens | `name`, plus your properties |

- `screen_viewed` is never sent automatically. Call `screen(name)`, or turn on your platform's screen tracking.
- Turn the first four off with `trackLifecycleEvents = false` on Android, or `trackLifecycle: false` on iOS, Flutter and React Native. Turn deep links off with `trackDeepLinks`.
- If you add the SDK to an app people already have, each of them sends `app_installed` once, on their first launch with the SDK.

On Android, the install referrer's campaign is added to `app_installed`. See [Install referrer](https://docs.lemuai.com/sdks/android#install-referrer).

## Custom events

Any name that isn't a standard event is a custom event, for example `coupon_applied` or `wishlist_shared`. Custom events are never rejected, and they work in journeys, segments and the Event Log like any other event.

Lemu stores a custom name from an SDK in lowercase with underscores, so "Coupon Applied" is stored as `coupon_applied`. Use that spelling in journeys and segments, or send it that way to begin with.

## Properties Lemu removes

Contact details belong in `identify` traits only. Lemu removes these keys from event, page and screen properties, at any depth, whatever their case: `email`, `e_mail`, `phone`, `phone_number`, `mobile`, `mobile_number`, `whatsapp`, `password`, `otp`, `card`, `card_number`, `cvv`, `pan`, `aadhaar` and `address`. The same keys are removed from the query string of page URLs and referrers.

## Context

The SDKs add context to every event. Your code never sets it. Lemu keeps:

| Context | What it holds |
|---|---|
| `platform` | `web`, `ios`, `android`, `flutter` or `react_native` |
| `library` | The SDK's name and version |
| `app` | The app's `name`, `version`, `build` and `namespace` (bundle id or package name) |
| `device` | `manufacturer`, `model`, and `type` (`phone`, `tablet`, `desktop`, `tv` or `other`) |
| `os` | The OS name and version |
| `screen` | Width, height and pixel density |
| `locale`, `timezone` | For example `en-IN` and `Asia/Kolkata` |
| `campaign` | `source`, `medium`, `campaign`, `term` and `content` from UTM parameters, plus `gclid` and `fbclid`, from the landing page, the deep link that opened the app, or the Android install referrer |
| `user_agent` | The browser's user agent, or the SDK's, such as `lemu-android/1.0.0 (Android 14; Pixel 8)` |
| `referrer` | The page's referrer, on websites |

You can see an event's context in [Recent events](https://docs.lemuai.com/website-pixel/overview#recent-events). No advertising ids and no hardware ids are sent or kept.
