LemuAIDocs

Settings · 6 min read

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

Open in ChatGPTOpen in ClaudeMarkdown

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.

How calls are stored#

CallStored 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). Traits go to the contact, never into event properties

Standard events#

These are Meta's standard events, with Meta's names and parameters. Every SDK has a constant for each one.

EventJavaScript, React, React NativeAndroidiOS, FlutterParameters
PageViewLemuEvent.PageViewLemuEvent.PAGE_VIEWLemuEvent.pageViewnone. On websites, page() sends it
ViewContentLemuEvent.ViewContentLemuEvent.VIEW_CONTENTLemuEvent.viewContentcontent_ids, content_category, content_name, content_type, contents, currency, value
SearchLemuEvent.SearchLemuEvent.SEARCHLemuEvent.searchsearch_string, content_category, content_ids, contents, currency, value
AddToCartLemuEvent.AddToCartLemuEvent.ADD_TO_CARTLemuEvent.addToCartcontent_ids, content_name, content_type, contents, currency, value
AddToWishlistLemuEvent.AddToWishlistLemuEvent.ADD_TO_WISHLISTLemuEvent.addToWishlistcontent_ids, content_name, content_category, contents, currency, value
InitiateCheckoutLemuEvent.InitiateCheckoutLemuEvent.INITIATE_CHECKOUTLemuEvent.initiateCheckoutcontent_ids, content_category, contents, currency, num_items, value
AddPaymentInfoLemuEvent.AddPaymentInfoLemuEvent.ADD_PAYMENT_INFOLemuEvent.addPaymentInfocontent_ids, content_category, contents, currency, value
PurchaseLemuEvent.PurchaseLemuEvent.PURCHASELemuEvent.purchasevalue, currency and order_id (required), content_ids, content_name, content_type, contents, num_items. Use purchase()
LeadLemuEvent.LeadLemuEvent.LEADLemuEvent.leadcontent_category, content_name, currency, value
CompleteRegistrationLemuEvent.CompleteRegistrationLemuEvent.COMPLETE_REGISTRATIONLemuEvent.completeRegistrationcontent_name, currency, status, value
SubscribeLemuEvent.SubscribeLemuEvent.SUBSCRIBELemuEvent.subscribecurrency, predicted_ltv, value
StartTrialLemuEvent.StartTrialLemuEvent.START_TRIALLemuEvent.startTrialcurrency, predicted_ltv, value
ScheduleLemuEvent.ScheduleLemuEvent.SCHEDULELemuEvent.schedule
SubmitApplicationLemuEvent.SubmitApplicationLemuEvent.SUBMIT_APPLICATIONLemuEvent.submitApplication
ContactLemuEvent.ContactLemuEvent.CONTACTLemuEvent.contact
CustomizeProductLemuEvent.CustomizeProductLemuEvent.CUSTOMIZE_PRODUCTLemuEvent.customizeProduct
DonateLemuEvent.DonateLemuEvent.DONATELemuEvent.donate
FindLocationLemuEvent.FindLocationLemuEvent.FIND_LOCATIONLemuEvent.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.

Parameters#

ParameterTypeMeaning
valuenumberAn 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
currencystringAn ISO 4217 code such as INR
order_idstringYour 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_idslist of stringsProduct ids or SKUs
contentslist of objectsItems, each with id and quantity, and optionally item_price, title, brand and category
content_typestringproduct or product_group
content_namestringA name
content_categorystringA category
num_itemsintegerThe number of items
search_stringstringWhat was searched for
predicted_ltvnumberThe expected lifetime value of a subscriber
statusstringThe 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. See 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.

EventJavaScript (React Native)AndroidiOS, FlutterWhenProperties
app_installedLemuEvent.AppInstalledLemuEvent.APP_INSTALLEDLemuEvent.appInstalledThe first launch with the SDKversion, build
app_updatedLemuEvent.AppUpdatedLemuEvent.APP_UPDATEDLemuEvent.appUpdatedThe first launch after the version or build changedversion, build, previous_version, previous_build
app_openedLemuEvent.AppOpenedLemuEvent.APP_OPENEDLemuEvent.appOpenedEvery launch and every return to the foregroundfrom_background, and url when a link opened the app (not on Flutter)
app_backgroundedLemuEvent.AppBackgroundedLemuEvent.APP_BACKGROUNDEDLemuEvent.appBackgroundedThe app goes to the background
deep_link_openedLemuEvent.DeepLinkOpenedLemuEvent.DEEP_LINK_OPENEDLemuEvent.deepLinkOpenedA link opens the appurl, referrer
screen_viewedLemuEvent.ScreenViewedLemuEvent.SCREEN_VIEWEDLemuEvent.screenViewedA screen is shown, when you track screensname, 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.

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:

ContextWhat it holds
platformweb, ios, android, flutter or react_native
libraryThe SDK's name and version
appThe app's name, version, build and namespace (bundle id or package name)
devicemanufacturer, model, and type (phone, tablet, desktop, tv or other)
osThe OS name and version
screenWidth, height and pixel density
locale, timezoneFor example en-IN and Asia/Kolkata
campaignsource, 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_agentThe browser's user agent, or the SDK's, such as lemu-android/1.0.0 (Android 14; Pixel 8)
referrerThe page's referrer, on websites

You can see an event's context in Recent events. No advertising ids and no hardware ids are sent or kept.

Was this page helpful?