gpt4 book ai didi

android - Firebase 仪表板不显示顶级产品的价格

转载 作者:行者123 更新时间:2023-11-29 22:49:48 24 4
gpt4 key购买 nike

在 Firebase 仪表板中,当查看 add_to_cart 事件时,我可以看到价格参数成功触发: enter image description here

但是在下面的“顶级产品”窗口中,我看不到任何价格: enter image description here

我想弄明白为什么。是不是因为我没有发送值参数(我只发送价格和货币)谢谢

最佳答案

您的第一个屏幕截图中的事件摘要显示了发送的 price 参数。这可以是一个字符串,一个数字,任何东西。在您的情况下,它是一个数字。

第二个屏幕截图中的产品摘要显示了发送的 value 参数。这必须是货币值(value),并且是您应该使用的货币值(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. $3.99 USD

关于android - Firebase 仪表板不显示顶级产品的价格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58072752/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com