How to view event parameters from Firebase console

后端 未结 3 1238
感情败类
感情败类 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:13

    Honestly, the answer here didn't help me at all. I finally figured out that you have to manually add custom parameter reporting to each event. Here's a link to the docs.

    https://support.google.com/firebase/answer/7397304?hl=en&utm_id=ad&authuser=0

    And I guess in case this link dies, I'll add the steps below. This is just copy paste from the link.

    Custom-parameter reporting Define custom parameters for your events.

    Google Analytics for Firebase lets you specify up to 25 custom parameters per event (Android or iOS).

    You can also identify up to 50 custom event parameters per project (40 numeric and 10 textual) to include in reporting by registering those parameters with their corresponding events. Once you register your custom parameters, Google Analytics for Firebase displays a corresponding data card in each related event-detail report.

    Each parameter that you specify counts toward the project limit of 50. For example, if you specify the same parameter for 3 different events, then that counts as 3 of your 50.

    To register custom parameters for an event:

    In Analytics for Firebase, navigate to your app.
    Click Events.
    In the row for the event you want to modify, click More > Edit parameter reporting.
    In the Enter parameter name field, enter the name of the parameter you'd like to register.
    If a match is found, select it in the list and click ADD.
    If no match is found, click ADD.
    Set the Type field to Text or Number. For numeric parameters, set the Unit of Measurement field.
    Click SAVE, then click CONFIRM.
    

    On the Events page, any event with registered parameters has a gray box next to the event name with the number of registered parameters for that event.

    To edit registered parameters:

    In the row for the event, click More > Edit parameter reporting.
    Add new parameters per the instructions above, or click Delete to remove a parameter.
    Click SAVE, then click CONFIRM.
    

    The per-app count for registered parameters appears at the bottom of the list of parameters. As you enter parameters, the count updates. When the quota has been reached (50), that number appears in red, indicating that you cannot register any more.

    When you register custom parameters, a data card for each parameter is added to the related event-detail report. However, it may take up to 24 hours for the data card to appear.

    0 讨论(0)
  • 2020-12-17 08:20

    It looks like you're logging the correct event and parameters. It should produce a select_content report that looks like the attached. You don't need to create an audience to see this.

    0 讨论(0)
  • 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,
        })
      }
    
    0 讨论(0)
提交回复
热议问题