Measure key events in mobile apps

Key event measurement can help you to understand if user interactions effectively lead to valuable customer activity within your mobile app, such as in-app purchases, subscriptions, and sign-ups.

Mobile app conversions and key events may be measured in Google Ads and Google Analytics 4.

To capture conversions in your Ads account, import events from your Google Analytics 4 property:

  1. Sign in to your Google Ads account.
  2. Click the tools icon in the upper-right corner of your account.
  3. Under the section labeled Measurement click Conversions.
  4. Click the plus button.
  5. Select App from the list of conversion types.
  6. Click Google Analytics 4 (Firebase), then click Continue.
  7. Check the box next to each event you’d like to import, click Import.
  8. Click Done.

Learn more about Google Ads conversions.

Google Analytics 4

Google Analytics 4 properties enable unified measurement of user interactions and events across your website and mobile app. Google Analytics 4 collects many events by default, and some events are automatically marked as key events. App data streams within Google Analytics 4 properties utilize the Firebase SDK to send events. Learn more about events.

Additionally, you can enable or turn off other automatically collected events, or mark custom events as key events as well.

You can register an event as a key event either before or after the event is sent.

To register an event before it is sent:

  1. In Analytics, navigate to the reports for your Google Analytics 4 property.
  2. Click Key events.
  3. Click New key event.
  4. Enter the name of the event you want to identify as a key event. Note: Make sure the event name you enter is exactly the same as the event that you are sending.
  5. Click Save.

If you’ve already sent the event previously and want to mark it as a key event:

  1. In Analytics, navigate to the reports for your Google Analytics 4 property.
  2. Click All events.
  3. In the row for the event, turn on the switch in the Mark as key event column.

To send a custom event, do the following:

Android: Java

Bundle params = new Bundle();
params.putString("image_name", name);
params.putString("full_text", text);
mFirebaseAnalytics.logEvent("share_image", params);

Android: Kotlin

firebaseAnalytics.logEvent("share_image") {
  param("image_name", name)
  param("full_text", text)

iOS: Swift

Analytics.logEvent("share_image", parameters: [
"name": name as NSObject,
"full_text": text as NSObject

iOS: Objective-C

[FIRAnalytics logEventWithName: @ "share_image"
  parameters: @ {
    @ "name": name,
      @ "full_text": text