Is possible to set firebase custom properties analytics as array? - android

I'm planning to use Firebase Analytics for my Apps. According to Firebase Docs is possible to set custom user properties docs here Android and IOS. Latter one can use the properties to create audiences in Firebase Analytics Dashboard as described here Analytics DashBoard
I want to use a user custom property as an Array.
For example:
Setting user property to TagsUserLikes=["hashtagBlue","hashtagRed","hashtagGreen"] so latter one I'll be able to track an audience of all the users that follow a particular tag, meaning users that contain the tag in the array.
So latter in the Analytics dashboard a audience defined solely as TagsUserLikes="hastagBlue" will match all users that contain this tag ["hashtagBlue","hashtagRed","hashtagGreen"] and ["hashtagBlue","hashtagDogs"],?
Is this supported in the Google Analytics Dashboard (create audience)?
Is this supported in the Google Big Query?
If Yes How can I achieve this?
tks

Although you could theoretically concatenate a list of tags in one User Property value (and use it for audience creation), the limit on the length of User Property values (36 characters) might make this approach impractical for you.
Alternatively, you can log an event such as "tag_followed" with a parameter "tag_name=" and then you can create an audience of users who log tag_followed with a particular tag_name value.

Related

Firebase audiences - cannot target by user property

Given that I can firebaseAnalytics.setUserProperty("some_property", someValue), it would be reasonable to expect that I can create an audience based on the certain user property right?
Can't find such option in Firebase console
It's not clear in the docs either
Side notes
I know that I can target audiences by one property user_id which is set through firebaseAnalytics.setUserId(someId) but that's not what I want

Exclude age, gender and region from firebase Analytics on Android

Recently I had a specific request, don't allow firebase analytics to collect user's data like gender, age and region (Due to GDPR). I know, we can completely disable Analytics.
Firebase Analytics says:
Analytics automatically logs some user properties; you don't need to add any code to enable them. If you need to collect additional data, you can set up to 25 different Analytics User Properties per project. Note that user property names are case-sensitive and that setting two user properties whose names differ only in case results in two distinct user properties being logged.
You can't use a small set of user property names reserved by Google:
Age
Gender
Interest
I was wondering if there is a way to only disable these users properties which are logged automatically??
Thanks a lot for your effort.
There is no option to exclude any of the automatic properties (except, apparently, on iOS, where you have to do some configuration to enable them). The only configurations are documented here. If you're required not to collect that information about the end user, your only option is to disable Analytics altogether.
Note the the data is fully anonymized. There is no way to track the properties back to a specific end user, unless you add some personally identifying information to a user record, such as a user ID.

federated identities and modification of user attributes

In my app I want users to sign themselves up/in (through user pool I created) or through facebook. I have done this first approach and looking at facebook authentication now. Basically, I retrieve user info such as name, email, gender etc but I also want them to fill in missing information such as DOB, location or later on, if they wish, they should be able to modify those attributes. How can I achieve this ? Should I have a DynamoDB table and populate it with those attributes and let them modify it later ? Thanks for advice.
In addition to David's answer, you could use Cognito Sync to store each of those attributes as a record within a single dataset. Since you mentioned you have a Facebook provider linked, those'll be accessible cross devices and only visible to the owning user.
Dynamo is also a totally viable option, you could use Cognito's IAM permissions to make sure users can only see/update their own rows.
We added support for Federation through Facebook, Google and LoginWithAmazon for User Pools. This will create a user in user pool when a user logs in with federation. You can also capture the attributes from Facebook using the attribute mapping feature.
I would suggest aws cognito to help track the user attributes as you have e described https://aws.amazon.com/cognito/ it has a lot of those attributes built in and also allows you to create custom attributes.

How to set User property to "Purchasers" in Firebase?

Unfortunately, Firebase documentation is incomplete.
There is a filter inside Firebase Analytics panel:
And Firebase Notifications panel:
Which allows to filter users, but there is no instructions on how to set a user property as a Purchasers in the documentation.
The only description about Purchasers in the documents is this link.
I think there must be a command like this:
firebaseAnalytics.setUserProperty("USER_TYPE", "PURCHASERS"/"NONPURCHASERS");
But I have no clue about the Property name or the Value. Does anybody know how to do this?
The Purchasers Audience is one of the two predefined Audience available (the other one being All Users), wherein a Purchaser is defined as:
Users who have completed an in-app purchase or ecommerce purchase.
-- source
I think that pretty much explains it on how a user is labeled as a Purchaser.
You can however, create your own Audience if you prefer (from the same source above):
Create an audience
You create an audience by defining criteria that reference any of the user properties and events (along with any of their parameters) logged by the app. Once created, an audience accumulates users who meet the specified criteria from that point onward. You can create up to 50 audiences.
To create a new audience:
In Firebase Analytics, click the Audiences tab.
Click NEW AUDIENCE.
Enter a name and description for the audience. This name and description will allow you to identify the audience in the management table.
Click Select Event or User Property.
Create one or more conditions that define who should be included in this audience. You can create conditions that include the users who have taken specific actions (Event) or who share a property (User Property). Combine multiple conditions with OR or AND.
Click Create to save your conditions and create the audience.
Here is how you can create your Purchasers audience:
Click audience on the left-side menu
Click new audience on the top right
Select a filter > choose event > choose in_app_purchase
Click add a parameter
count > greater than 0

Firebase Analytics - Add custom keys in device_Info or geo_info

I have been using Firebase Analytics for quite some time now and I wanted to know if we could add or modify some specific keys (other than userId) in the analytics data visible on BigQuery? The reason I'm asking this is so I can map my old users to the new users on Firebase.
Looking at the analytics data on BigQuery, inside device_info there is a key device_id whose value I always found null. I want to modify this value as I was previously setting it for my old users. This would help migrate users from my old analytics db to Firebase. Not only the device_info, can I modify/add new key-value params in the other dimensions too?
All help is appreciated.
device_id in device_info is only populated on iOS platform with the IDFV, if IDFA is not available. It is not used for the Android platform.
https://support.google.com/firebase/answer/7029846?hl=en
There is no support for overriding these values that I'm aware of.
Meanwhile, if you have access to, say, the resettable_device_id, you might be able to use that to join in other data you have for the old users in BigQuery.

Categories

Resources