rat
rat

Reputation: 1295

Is possible to set firebase custom properties analytics as array?

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

Upvotes: 4

Views: 1956

Answers (1)

Steve Ganem
Steve Ganem

Reputation: 10861

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.

Upvotes: 4

Related Questions