Firebase 仪表板不显示顶级产品的价格
Firebase dashboard doesn't show price in top products
在 Firebase 仪表板中,查看 add_to_cart 事件时,我可以看到价格参数成功触发:
但是下面 "top products" window,我看不到任何价格:
我正在尝试了解原因。是不是因为我没有发送值参数(我只发送价格和货币)
谢谢
您第一个屏幕截图中的事件摘要显示已发送 price
参数。这可以是一个字符串,一个数字,任何东西。在你的情况下,它是一个数字。
第二个屏幕截图中的产品摘要显示已发送 value
参数。这必须是货币价值,并且是您应该使用的货币价值。
来自the docs:
public static final String VALUE
A context-specific numeric value which is accumulated automatically
for each event type. Value should be specified with putLong(String, long)
or putDouble(String, double)
. This is a general purpose
parameter that is useful for accumulating a key metric that pertains
to an event. Examples include revenue, distance, time, and points.
Notes: Values for pre-defined currency-related events (such as
ADD_TO_CART) should be accompanied by a CURRENCY
param. The valid
range of accumulated values is [-9,223,372,036,854.77, 9,223,372,036,854.77]
. Supplying a non-numeric value, omitting the
corresponding CURRENCY
parameter, or supplying an invalid currency
code for conversion events will cause that conversion to be omitted
from reporting.
Bundle params = new Bundle();
params.putDouble(Param.VALUE, 3.99);
params.putString(Param.CURRENCY, "USD" ); // e.g. .99 USD
在 Firebase 仪表板中,查看 add_to_cart 事件时,我可以看到价格参数成功触发:
但是下面 "top products" window,我看不到任何价格:
我正在尝试了解原因。是不是因为我没有发送值参数(我只发送价格和货币) 谢谢
您第一个屏幕截图中的事件摘要显示已发送 price
参数。这可以是一个字符串,一个数字,任何东西。在你的情况下,它是一个数字。
第二个屏幕截图中的产品摘要显示已发送 value
参数。这必须是货币价值,并且是您应该使用的货币价值。
来自the docs:
public static final String VALUE
A context-specific numeric value which is accumulated automatically for each event type. Value should be specified with
putLong(String, long)
orputDouble(String, double)
. This is a general purpose parameter that is useful for accumulating a key metric that pertains to an event. Examples include revenue, distance, time, and points. Notes: Values for pre-defined currency-related events (such as ADD_TO_CART) should be accompanied by aCURRENCY
param. The valid range of accumulated values is[-9,223,372,036,854.77, 9,223,372,036,854.77]
. Supplying a non-numeric value, omitting the correspondingCURRENCY
parameter, or supplying an invalid currency code for conversion events will cause that conversion to be omitted from reporting.Bundle params = new Bundle(); params.putDouble(Param.VALUE, 3.99); params.putString(Param.CURRENCY, "USD" ); // e.g. .99 USD