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

问题描述

我认为最合适的是 SELECT_CONTENT,但正如文档所说:

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

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

我正在将我的 GA 活动转移到 FB,我希望保持我拥有的舒适格式:
屏幕名称(类别)|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 小部件可用于共享内容,因此它们可以绑定到 SHARE 事件.

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.

如果这些还不够,而您想跟踪更多,SELECT_CONTENT 是一个非常通用的事件,您可以以任何您认为合适的方式进行映射.例如,您可以设置 CONTENT_TYPE 表示按钮"和 ITEM_ID 到按钮的名称.虽然这不是本次活动的主要目的,但它应该能满足您的需求.

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 上的事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 19:40