On 03/31/2018, Google Analytics for Firebase will replace Google Ads SDK as the primary way to track conversions using an SDK. If you’re using Google Ads SDK and you need to switch to Firebase, replace the SDK in your app with the Firebase SDK and release the updated version of your app before 03/31/2018.
If you’re setting up conversion tracking for the first time, follow the instructions to track conversions with Firebase.
Use conversion tracking to help you see how effectively your ad clicks lead to app installs and in-app activity.
This article explains how to track installs and in-app actions with a third-party analytics tool or by adding code to your app using the Google Ads SDK. To track your conversions by importing them from Firebase, see these instructions instead. For more about mobile app conversion tracking in general, see About mobile app conversion tracking.
Before you begin
Here's what you'll need before you can set up app conversion tracking:
- A Google Ads account: Don't have one yet? Sign up at http://ads.google.com.
- Ability to set up conversion data: Either you or your app developer will need to be able to edit your app's code or use a 3rd-party analytics tool.
How to track Android in-app conversions
- Sign in to your Google Ads account.
- Click the Tools tab, and select Conversions from the drop-down menu.
- Click the + Conversion button.
- Select the "App" option.
- Select First opens and in-app actions.
- Select Android, then select In-app actions. Click Continue.
- Click Name. Enter the name of the in-app conversion you'd like to track. This will help you recognize this action later when it shows up in conversion reports. Examples might be "[Name of app] upgrade" or "[Name of app] in-app purchase." Click Done.
- Click Value. Select whether each conversion has the same value, varying values, or select "Don't assign a value" if you'd prefer not to count one. If you choose varying values, you'll need to follow these instructions to track transaction-specific values. Click Done.
- Click Mobile app. Enter the name, package name, or publisher of your app and click Find app. Select your app from the drop-down. (Learn more under “About the ‘Mobile app’ setting” below.) Click Done.
- Click Count. Select whether to count every or one conversion per ad click. "Every" is best for sales; "one" is best for leads. Click Done.
- Click Category. Select the category that best applies to your conversion. If you're tracking newsletter signups, you'll pick "Sign-up." For purchases, you'll pick "Purchase/Sale." If your conversion doesn't fall into a listed category, select "Other." Your choice here won't impact the way your conversions are recorded. Click Done.
- (Advanced) Click Include in "Conversions." Opting into this setting—selected by default—will include data for this conversion action in your "Conversions" reporting column. If you uncheck this setting, data will still be included in the "All conversions" column.
Data in the “Conversions” column is used by automated bid strategies like Target return on ad spend, Enhanced cost-per-click, or Target CPA. So, if you use an automated bid strategy to optimize for conversions, and you don’t want to include this particular conversion action in your bid strategy, you can uncheck this setting. Otherwise, leave it checked. Click Done.
- (Advanced) Click Postback URL. This option allows you to send conversions information back to your Android app analytics package. Enter the postback URL that your app analytics provider has given you. See our app conversion confirmation developer guide for more detailed information. Click Done.
- Click Save and continue.
- Review your settings. If you need to make any changes, click Edit conversion settings.
- Select one of the two options under "Set up your tracking method."
- Put tracking code into the app: Select this option if you want to use our SDK to add conversion tracking code to your app.
- Set up a server-to-server conversion feed from an app analytics package to Google Ads: Select this option if you use a 3rd-party app analytics server and want to use it to track Google Ads in-app conversions.
- Select whether to save the code and instructions or email it to your developer.
- Click Done.
- Follow the instructions in our developer guide for mobile app conversion tracking. There are instructions for both tracking options mentioned above. Be sure to choose the instructions for Android apps.