Firebase Audience Targeting on Count Operators - firebase

I use Firebase Analytics & Audiences for event tracking & push notification campaigns. I want to target my app's users that did not have an in_app_purchase across their entire lifetime.
I created the following tests in the Firebase Analytics Audiences dashboard, but could unfortunately not save & create the audiences:
Test 2 below does not work with in_app_purchase Count < 1.
Test 3 does not work with in_app_purchase Count = 0.
I assume I am not the only one that want to grow their buyer segment. So, I am curious how one would be able to create this audience in Firebase (and target them thereafter with a push notification)?

Firebase Analytics includes a default audience of "Purchasers" which can then be used in reverse (using "does not include all of") to compose a message to users that are not part of this audience:

Related

How Does Firebase Analytics count New Users in Web App

We have a web app that users log into using Firebase Auth. According to our the authentication section of our firebase console, we have 690 user that have created accounts, and we believe that is correct.
According to our Firebase Analytics console, we have 2,100 new users in the past 90 days. I think I understand that Firebase Analytics tracks users with a device ID (?). So, if this were a iOS app, an uninstall and install would trigger a a new user counted in analytics. But, how does this work on a web app? Cookie? Some kind of browser id? A session?
So, I think if we want to track unique users accurately, we would use the set the user id, with this:
https://firebase.google.com/docs/reference/js/firebase.analytics.Analytics#setuserid
Which according to the docs linked above, 'Use gtag 'config' command to set 'user_id'. So it does this: https://developers.google.com/analytics/devguides/collection/gtagjs/cookies-user-id#set_user_id
Which allows the users to be tracked across sessions. Therefore, users should not double count.
Notice that the setUserId section in the firebase analytics docs does not have a web section (although the setUserID function does exist in the javascript sdk as shown tow links above) https://firebase.google.com/docs/analytics/userid
So... would it then work to get the user id (uid) when they log in (https://firebase.google.com/docs/reference/js/firebase.User). And then use the setUserId method to set the id?
It's unclear because the documentation does not seem to be in one source. I am just trying to put it all together
You are correct that you can use the setUserId API (across iOS, web and Android) in order to identify the same user across platforms. Note that you'll need to:
Set the default reporting identity to "By User-ID then Device" in the Reporting settings for Google Analytics in the Firebase console (see attached screenshot and docs for more info).
Make sure you are following the Privacy Policy when using the User ID.

Firebase Analytics: Manually return a user's audiences

I want to write a firebase cloud function that returns a value based on the analytics audiences the user belongs to. To that end I need a way, either on the front end or the backend, to manually query what audiences a given user belongs to. Is there any way to do this in firebase?
I don't think is currently possible.
Audiences are used to :
Filter reports so you can analyze how different user segments engage with your app
Target Notifications to individual audiences
Target Remote Config to deliver custom experiences to different audiences
In the case of reports you can add a filter based on single user property such as age or gender but not for an specific user.

Firebase Cloud Messages with Analytics and user properties

I'm using Firebase Analytics and User Properties in my app to collect some data and to see how the users are using the app etc.
My app has both Free Version and Pro version. Before hire the Pro version, the user can use the Pro Version as a Trial of 1 month. When the user starts the Free Trial, I'm creating a event named "started_free_trial" and with this event I'm sending a "created_at" event attribute equal to System.currentTimeInMillis().
Now I want to send the cloud notifications from the Firebase console to the users who are using the trial period of Pro version at intervals of 15 days, 25 days and 30 days from the free trial start.
So here are the points what i want to do exactly
Create a Audience of users who started the Trial 15, 25 and 30 days ago. Can I do that? As Firebase provides an option to create audiences but I don't know how to create such type of audience to filter according to my requirement.
I want to send notification to that above created audiences.
I need your help to complete/perform above 2 points.
Looking for positive response.
Thanks
You can't really create an audience based on time the user started using your app, since the audiences are sticky, once a user is in the audience she will remain there forever.
However, instead of targeting to an audience, you can use user property directly to target your notification to users that registered after certain time or before certain time.
Just make you app to store the first start time to user property and the use that as the condition. You can also create other relatewd conditions and combine them.

Firebase RemoteConfig and conditions with audience

In Firebase I am trying to set up some RemoteConfig parameters that should have different values based on the audience membership of the user that is logged in to an Android app we are developing.
The problem is that I am not allowed to set up a RemoteConfig condition based on audience. The option is greyed out.
Also, if I attempt to view events filtered by my Audience in Firebase
Analytics, no events appear.
My audience configuration in Firebase looks like this:
I understand that I my audience needs to be "reasonably well
developed" for them to be targetted by RemoteConfig
(https://support.google.com/firebase/answer/6317509?hl=en)
So I have followed this procedure to populate the audience:
Install app
app triggers "login" event with custom user property "chain_id" set.
uninstall app
reset advertising ID (as noted here https://stackoverflow.com/a/39183589/930653)
I have repeated this about 20 times and waited 48 hours.
The audience ("Minibuss") now lists 23 members:
But still, I can not use the audience as a condition in RemoteConfig,
or filter events in Firebase Analytics based on this audience.
I have tried looking at DebugView in the Firebase console, and I can see the user has the correct porperty "chain_id" set to 524, and so the event should match the audience.
Am I missing something?
This rule requires an App ID rule to select an app associated with
your Firebase project.
from https://firebase.google.com/docs/remote-config/parameters
You need to set Applies if "App" and choose your app, and then User audience option will be available.

Can react-native-firebase report demographic data (age/gender)?

I want track gender and age in Firebase analytics for my react native app users if possible.
Firebase docs specify that some data is automatically collected by Firebase analytics. Automatically collected user properties
This link includes this blurb:
Where Analytics gets demographics and interests data
Analytics collects demographics and interests data from the following sources:
The Android Advertising ID. Applies to app activity only. Analytics generates an identifier based on the ID that includes demographic and interest information associated with users’ app activity.
The iOS Identifier for Advertisers (IDFA). Applies to app activity only. Analytics generates an identifier based on the IDFA that includes demographic and interest information associated with users’ app activity.
When the Device Advertising ID is not present, Analytics cannot collect demographics and interests information. Consequently, demographics and interests data may only be available for a subset of your users, and may not represent the overall composition of your traffic.
My question is there a way to link this up with react-native-firebase? The only reference to "gender" I found in the codebase is a "setGender" function under the admob lib, but nothing in the docs mentions age, gender, or demographics.
This tracking is set up automatically in the same way it would be using the standard iOS or Android SDK.
Behind the scenes, react-native-firebase is using these same iOS and Android SDKs so anything that happens automatically as part of them, will happen automatically with react-native-firebase.

Resources