Skip to content

Unable to get groupProperties, eventProperties, groups in amplitude session #104

@hariappfire

Description

@hariappfire

Summary

I am unable to get the following fields in logged event amplitude dashboard,
I am passing the following properties,
eventProperties, groupProperties, groups even they are assigned,
Event ampliEvent = new Event(event.getValue(),(String)hostInfo.get("host")); JSONObject groupProps = new JSONObject(); // groupProps.put("license",((String)pluginInfo.get("licenseId")).equalsIgnoreCase("NONE")?"unavailable": (String)pluginInfo.get("licenseId")); groupProps.put("test","test_group"); ampliEvent.groupProperties = groupProps; JSONObject groups = new JSONObject(); groups.put("orgId", 10); ampliEvent.groups = groups; ampliEvent.userProperties = groups; ampliEvent.eventProperties = new JSONObject().put("test","testEvent"); JSONObject finalObject = ampliEvent.toJsonObject();

The following is the amplitude session logged with missing properties in group_properties, event_properties, groups
"device_type": null, "display_name": "AppInstalled", "dma": null, "event_id": 0, "event_properties": { }, "event_time": "2024-06-11 06:30:00.834000", "event_type": "AppInstalled", "group_properties": { }, "groups": { }, "ip_address": null, "language": null, "library": "amplitude-java/1.12.2", "location_lat": 0.0, "location_lng": 0.0, "os": "", "os_name": null, "os_version": null, "partner_id": null, "paying": null, "plan": { }, "platform": null, "processed_time": "2024-06-11 06:30:24.288000", "region": null, "sample_rate": null, "server_received_time": "2024-06-11 06:30:22.792000", "server_upload_time": "2024-06-11 06:30:22.795000", "session_id": -1, "source_id": null, "start_version": null, "timeline_hidden": false,

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions