How to view event parameters from Firebase console

后端 未结 3 1323
感情败类
感情败类 2020-12-17 07:32

I have just started using Firebase for my app analytics and I\'m having some issues trying to view the parameters associated with my events. Upon logging into the console, s

3条回答
  •  借酒劲吻你
    2020-12-17 08:25

    Right now to show parameters you need to configure metrics or dimensions like written here: https://support.google.com/analytics/answer/10075209

    After you added it and waited for 24 hours you will see something like that: Here shop_exit_app is the main event, and shop_item is a parameter of this event

    UPD: To add a parameter you need just use something like this:

    logShopExitApp(shopItem?: ShopItem): void {
        firebase.analytics.logEvent({
          key: 'shop_exit_app',
          parameters: shopItem ? [
            {
              key: 'shop_item',
              value: shopItem.title,
            }
          ] : null,
        })
      }
    

提交回复
热议问题