Google 分析:自定义指标 "integers only" 是通过测量协议发送的吗?

Google Analytics: Are custom metrics "integers only" when sent in through the measurement protocol?

我们需要向 google 分析发送一个十进制值,并决定使用 "Currency" 类型的自定义指标来执行此操作。在跟踪文档中,它说应该允许这样做:

If the custom metric is configured to have a currency type, you can send decimal values.

https://developers.google.com/analytics/devguides/collection/analyticsjs/custom-dims-mets#sending_data

但是,我们使用测量协议发送原始数据,并且在 那个 文档中它说自定义指标只允许使用整数: https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#cm_

我注意到我们发送的十进制值没有显示在 UI 中。这可能是原因吗?

自定义指标不仅限于整数类型。它们可以是您想要的任何类型,只要它与您在 Google Analytics 管理界面中 creating them 时设置的类型相对应即可。

简而言之:对于 IntegerTime 类型的指标,自定义指标值应该是整数,它们可以是整数或浮点数Currency.

类型指标的数字

文档不正确(在提出此问题时),但已更新以澄清此歧义。