我应该使用什么事件来发送“已按下按钮"消息? Firebase Analytics上的事件 [英] What event should i use for sending a "button pressed" event on Firebase Analytics

查看:70
本文介绍了我应该使用什么事件来发送“已按下按钮"消息? Firebase Analytics上的事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现最合适的是

The one I found most suitable is SELECT_CONTENT, but as the doc says:

选择内容事件.此通用事件表示用户已在应用程序中选择了某些特定类型的内容.内容可以是您应用中的任何对象.此事件可以帮助您确定应用中的热门内容和内容类别.

Select Content event. This general purpose event signifies that a user has selected some content of a certain type in an app. The content can be any object in your app. This event can help you identify popular content and categories of content in your app.

我将我的GA事件移至FB,并且希望保持舒适的格式:
screen_name(类别)| button_name(操作)|值(opt_value)

I'm moving my GA events to FB and I wish to keep the comfortable format I have:
screen_name (category) | button_name (action) | value (opt_value)

我该如何实现?我知道我可以使用按钮名称和值的屏幕名称和自定义参数来创建自定义事件,但是除非使用了int值(我需要一个字符串),否则我的参数将无法在FB仪表板中使用.就像写在这里一样,我需要预先创建 >每个按钮都有一个受众群体,因此我以后可以对其进行过滤,这完全没有任何意义(!).

How can I achieve this? I know I can just create custom events with the screen name and custom param for the button name and value but then my params won't be available in the FB dashboard unless I use the value param which is an int (I need a string) as written here and I'll need to create from advance an audience for every button so I could filter by it later, which is completely not making any sense (!).

此外,我目前不希望与BigQuery集成.

Also, I don't want to integrate with BigQuery at the moment.

谢谢.

推荐答案

内置的Firebase Analytics事件的结构更多地围绕用户可以在应用程序中执行的关键操作.例如,可能有多个按钮或UI窗口小部件可用于共享内容,因此它们可以与

The built-in Firebase Analytics events are structured more around key actions the user can take within the app. For example, there might be multiple buttons or UI widgets that could be used to share content, so these could be tied to the SHARE event.

因此,我建议您浏览内置事件,并在适合您按任何按钮的情况下使用它们.

Therefore, I would recommend looking through the built-in events and using them where appropriate for any button presses you have.

如果这些还不够,并且您想跟踪更多,请 CONTENT_TYPE 说按钮",然后

If those don't suffice and you want to track more, the SELECT_CONTENT is quite a general purpose event that you can map in any way you see fit. For example, you could set the CONTENT_TYPE to say, "button" and ITEM_ID to the name of the button. While this is not the main purpose of this event, it should work for what you're after.

最后一个也是最灵活的选项是带有自定义参数的自定义事件,但是,正如您所指出的那样,内置Firebase仪表板中只会显示VALUE参数,因此对于这种方法,您需要使用BigQuery来检索数据并因此对您的情况不是很有用.

The last and most flexible option is a custom event with custom params, however as you noted, only the VALUE param will show in the built-in Firebase dashboard so for this approach you would need to use BigQuery to retrieve the data and therefore not very useful for your situation.

这篇关于我应该使用什么事件来发送“已按下按钮"消息? Firebase Analytics上的事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆