Prepare to grow with tips using Google Analytics for Firebase integrations with Ads

1. Introduction

d76fe9c1a6f95211.png 18a5f10012add17f.png

Last Updated: 2021-03-17

What is Google Analytics for Firebase?

Google Analytics is a free app measurement solution that provides insight on app usage and user engagement.

Unlimited Reporting

Analytics provides unlimited reporting on up to 500 distinct events.

Conversion Creation

30 of these 500 events can be marked as conversions, which are useful for running Google ad campaigns as you can create an ad campaign that optimizes towards these conversions.

Audience Segmentation

Custom audiences can be defined in the Firebase console based on device data, custom events, or user properties. These audiences can be used with other Firebase features when targeting new features or notification messages.

What is Google Ads?

Google Ads (formerly Google AdWords and Google AdWords Express) is an online advertising solution that businesses use to promote their products and services on Google Search, YouTube, and other sites across the web. Google Ads also allows advertisers to choose specific goals for their ads, like driving phone calls or website visits. With a Google Ads account, advertisers can customize their budgets and targeting, and start or stop their ads at any time.

What you'll learn

  • How to create a Firebase project for your app
  • How to create conversions in your Firebase project
  • How to create audiences in your Firebase project
  • How to create a Google Ads account for your app
  • How to link your Firebase project to your Google Ads account
  • How to import conversions from Firebase to Google Ads
  • How to import audiences from Firebase to Google Ads

What you'll need

  • An App with the Firebase SDK installed
  • A credit card (for Google Ads)

2. How to create a Firebase project for your app

  1. Create a Firebase project: Before you can add Firebase to your app, you need to create a Firebase project to connect to that app. Visit Understand Firebase Projects to learn more about Firebase projects.
  2. Register your app with Firebase: To use Firebase in your Android app, you need to register your app with your Firebase project. Registering your app is often called "adding" your app to your project.
  • Go to the Firebase console
  • In the center of the project overview page, click Add app to launch the setup workflow
  • Follow the instructions, which may differ depending on whether you are setting up an Android or iOS app, then click Register app

c801ce712aa86cce.png

  1. Add a Firebase configuration file: Download the configuration file from the setup flow and install it per the instructions for Android or iOS

acc64ccc9ec6570f.png

  1. Add Firebase SDKs to your app: Be sure to implement the Google Analytics for Firebase SDK, specifically. Separate instructions for Android and iOS are provided in the setup wizard. They are also available on the Firebase Developer Site

e5b0f81ff5d5b4fe.png

3. How to create conversions in your Firebase project for your app

  1. Start logging events: The Google Analytics for Firebase SDK will automatically log some events for you. To add custom events, use the logEvent method.

c1d0b421eeec2f0b.png

  1. (Optional) You can enable verbose logging to monitor logging of events by the SDK to help verify that events are being logged properly. This includes both automatically and manually logged events.

79269095f9adbd0a.png

  1. (Optional) Use DebugView to see the raw event data logged by your app on development devices in near real-time
  • Enable debug mode

c1d6bbe31b5efa3d.png

  • Navigate to DebugView in the Firebase interface, located in the Analytics section of the left navigation

b3b02375cbf91512.png

  1. Mark your most important events as conversions
  • Navigate to the Events page
  • Identify the events you want to set as conversions
  • Toggle the "Mark as conversion" for those events
  • *Once you link your Firebase project and Google Analytics with Google Ads, conversions will be made available to in Google Ads for import

5a5fe456d6a9a2b5.png

4. How to create audiences in your Firebase project for your app

  1. Navigate to Audiences, located under Analytics in the Firebase interface
  • *Note: The same audience builder is also available in your linked Google Analytics 4 property. Click "View more in Google Analytics" and locate Audiences under the Configure menu item

745e62d0f1625be1.png

  1. Choose one of three options for creating an audience:

ffe860c68039e40e.png

6646f1a2ec8ce136.png

1225586a0bf6995d.png

dd300892d0269878.png

60fa381b2a0e62a.png

Note: At this point we are going to pause on using Firebase and switch to Google Ads. We'll come back in a bit to link the two accounts though.

5. How to create a Google Ads account

Instructions

  1. Go here to enter Google Ads https://ads.google.com/ and click on Start now

8f3413a2061d39fb.png

  1. Sign in to your existing Google Account, or create a new one.
  • If you already have a Google Account (in other words, if you use any other Google product, such as Gmail), enter your Google email address and password, then click Sign in.
  • If you don't have an existing Google Account, or want to use a different email address to sign in, just click Create an account at the bottom of the screen and follow the instructions to create and confirm your new Google account.
  1. If this Google Account already has an Ads account:
  • You will see a list of your available accounts. You can select one if you wish and skip the remaining steps.
  • Otherwise, click on New Google Ads Account

baa7eff16d30210e.png

  1. For app campaigns, click on Switch to Expert Mode

35bd61c0b52c5650.png

  1. You will now be required to create your first app campaign
  • Click on App Promotion
  • Leave App installs selected
  • Select either Android or iOS
  • Type your app name to search for it - note that your app must be launched on the corresponding app store if you want to create an ACi campaign for it.
  • Select your app
  • Click Continue

a16f34c407ef03af.png

  1. Select your campaign settings
  • Give your campaign a name
  • Select the locations you want to target
  • Add the languages you want to target
  • Enter your budget
  • Leave Install Volume selected - note that GA4F is not needed for creating an ACi tCPI (or max conversions) Android campaign as it automatically imports the installs from Google Play. You can change this later to the first open from GA4F however.
  • Leave All users selected
  • Uncheck Set a target cost per install (optional)
  • Click Save & Continue

2aada2847299840d.png

  1. Create your Ad Group
  • Give your ad group a name
  • Add the text, images, videos, and HTML5s you wish to use as assets
  • Click Save & Continue

3bba3591ec7ac153.png

  1. Confirm your payment info and hit Submit

bc6c8793773d78e6.png

6. How to link your Firebase project to your Google Ads account

Before you begin

To link a Firebase project to Google Ads, use a Google account that has the following permissions. If your account doesn't have these permissions, ask your Firebase or Google Ads administrator for help.

  • In Firebase, your account needs to be an owner of the project that you want to link.
  • In Google Ads, that same Google account needs administrative access.

Learn how to grant or remove access to your Google Ads account.

  1. Sign in to Firebase.
  2. Click the Settings icon and select Project Settings.

5ed5c265f750e463.png

  1. On the Project Settings page, click the Integrations tab.

567d724ef8d3e328.png

  1. On the Google Ads card, click Link.
  • If a Google Ads account is already linked and you want to add another account, click Manage.
  • You must have administrative access to an Google Ads account in order to link. If you do not have administrative access to an existing account, you can click Upgrade & link to create a new one in Google Ads.
  1. [Optional] If an Google Ads account is already linked and you are adding another account, click Link account.

d90877c1019fa085.png

  1. Select the Google Ads accounts you want to link and click Link.

f32c7b9870cf68de.png

  • (If you have already added all the Google Ads accounts that you administer, the Link account button is dimmed.)

7. How to import conversions from Firebase to Google Ads

  1. In your Google Ads account, click on Tools & Settings in the top right corner, and then click on Conversions

42dea2937516499c.png

  1. In the conversion actions tab, click on the + sign

79d48bdad1a5bf47.png

  1. Click on App, then select the Google Analytics 4 properties (Firebase) option. Finally, click on Continue.

f6ca54bef4a1deb6.png

  1. Lastly, select the checkbox next to the conversions you would like to import and then click on Import and Continue.

f3745dc1bbf76cc8.png

8. How to import audiences from Firebase to Google Ads

  1. In your Google Ads account, click on Tools & Settings in the top right corner, and then click on Audience Manager

24cd3a07c80767f1.png

[Optional] Creating a new audience in Google Ads

  1. Select the + sign in the blue circle at the top of the screen

6e05197329b46b1b.png

  1. Click on App users

33d92edaac77230e.png

  1. Give your audience a name, and then select the app you wish to build this audience for

f46e08c56ed87017.png

  1. Finally, add the actions (or combination of actions) you wish to build this audience from, select the pre-fill option, and then click on Create Audience.

376dd99444b94f4e.png

Using an existing audience

  1. Select the checkbox next to the audiences you want to add, then click the dropdown arrow next to "Add to..." in the blue bar at the top of the screen, and then select either Ad groups or Campaigns.

984efa6fccf1dffa.png

  1. Select the checkbox next to the campaign (or ad group) you want to add the audience too, then click next

53a144e6b7df2800.png

  1. Finally, select a targeting setting for that audience and then click next

8b8fd03095176013.png

9. Congratulations

Congratulations, you've successfully created conversions & audiences in Firebase and imported them into Google Ads!

Further reading

  • Google Ads help center ( link)
  • Firebase help center ( link)