)从Firebase SDK获取
app_instance_id
或client_id
?
Reference:Https://developers.google.com/analytics/devguides/collection/collection/protocol/ga4/sending-events?client_type =firebase
const installationId = await installations.getId(
installations.getInstallations()
);
installationId
我假设您现在已经解决了这个问题,但是我了解到的是Firebase协议是针对移动应用程序的。对于Web应用程序,您应该使用GTAG。如果您使用的是移动应用程序,则docs描述了如何使用移动特定平台获取ID,该平台不是来自Firebase安装模块。
最简单的选择是允许在Firebase集成中流入您的BigQuery表。然后在BigQuery Intra Intra tables中找到您的description: "Measurement app_instance_id is expected to be a 32 digit hexadecimal number but was [22] digits."
fieldPath: "app_instance_id"
validationCode: "VALUE_INVALID"
或
app_instance_id