Skip to content

Commit 2a8988a

Browse files
committed
more comments
1 parent a279b92 commit 2a8988a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/event.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ impl Event {
4545
res
4646
}
4747

48+
/// Add a property to the event
49+
///
4850
/// Errors if `prop` fails to serialize
4951
pub fn insert_prop<K: Into<String>, P: Serialize>(
5052
&mut self,
@@ -58,7 +60,8 @@ impl Event {
5860
}
5961

6062
/// Capture this as a group event. See https://posthog.com/docs/product-analytics/group-analytics#how-to-capture-group-events
61-
/// Note that group events cannot be personless.
63+
/// Note that group events cannot be personless, and will be automatically upgraded to include person profile processing if
64+
/// they were anonymous. This might lead to "empty" person profiles being created.
6265
pub fn add_group(&mut self, group_name: &str, group_id: &str) {
6366
// You cannot disable person profile processing for groups
6467
self.insert_prop("$process_person_profile", true)

0 commit comments

Comments
 (0)