在我的项目中,我需要记录特定用户的“用户属性”。
我使用以下依赖关系:
compile group: 'com.amplitude', name: 'java-sdk', version: '1.2.3'下面是我的代码:
Amplitude client = Amplitude.getInstance();
client.init("PROJECT_API_KEY");
Event event = new Event("registerd_from_channel", "USER'S EMAILID");
JSONObject userProps = new JSONObject();
try {
userProps.put("is_user_registerd_from_channel", true);
} catch (JSONException e) {
error("Invalid JSON");
e.printStackTrace();
}
event.userProperties = userProps;
client.logEvent(event);问题:这段代码完全按照预期工作,但使用此代码时,还会记录一些附加的不需要的属性。喜欢
$price -> 0
$quantity -> 0
$revenue -> 0问题:如何避免这些不必要的属性?
对不起,我是一个振幅新手,我遵循了以下文件:https://developers.amplitude.com/docs/java
如果有人能对此提出任何博客/文档建议,那就太好了。
发布于 2021-09-03 02:19:28
https://stackoverflow.com/questions/69032287
复制相似问题