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](https://developers.google.com/tag-platform/devguides/app-conversions#google_ads) and
[Google Analytics](https://developers.google.com/tag-platform/devguides/app-conversions#google_analytics).

## Google Ads

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

1. Sign in to your [Google Ads account](https://ads.google.com/).
2. Click ![the tools icon](https://fonts.gstatic.com/s/i/googlematerialicons/build/v6/gm_grey-18dp/1x/gm_build_gm_grey_18dp.png) in the upper-right corner of your account.
3. Under the section labeled **Measurement** click **Conversions**.
4. Click ![the plus button](https://fonts.gstatic.com/s/i/googlematerialicons/add_circle/v6/gm_grey-18dp/1x/gm_add_circle_gm_grey_18dp.png).
5. Select **App** from the list of conversion types.
6. Click **Google Analytics (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](https://support.google.com/google-ads/answer/6366292).

## Google Analytics

Google Analytics properties enable unified measurement of user interactions
and events across your website and mobile app. Google Analytics collects many
events by default, and some events are automatically marked as key events. App
data streams within Google Analytics properties use the [Firebase SDK](https://firebase.google.com/docs/guides) to
send events. [Learn more about events](https://developers.google.com/tag-platform/gtagjs/reference/events).

Additionally, you can [enable or turn off](https://support.google.com/analytics/answer/9267568) 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 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 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
      }
    ];