Skip to content

Commit 60d4902

Browse files
committed
add alt text
1 parent 5a56f33 commit 60d4902

File tree

1 file changed

+20
-14
lines changed
  • src/connections/sources/catalog/libraries/mobile/apple/destination-plugins

1 file changed

+20
-14
lines changed

src/connections/sources/catalog/libraries/mobile/apple/destination-plugins/mixpanel-swift.md

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -110,26 +110,32 @@ To add people properties in Mixpanel before you know the user's unique database
110110

111111
## Group
112112

113-
Group calls are sent to Mixpanel if, **and only if**,
113+
## Group
114+
115+
Segment sends Group calls to Mixpanel when all of the following conditions are met:
116+
117+
- The **Group Identifier Traits** setting in your Mixpanel destination includes one or more traits.
118+
![Screenshot of the Mixpanel dashboard, showing the “Group Identifier Traits” field where one or more traits (like company_id) can be defined for grouping users.](/docs/connections/destinations/catalog/mixpanel/images/mixpanel-group-id-traits.png)
119+
- You’ve created a group key with the same name in your Mixpanel [project settings](https://help.mixpanel.com/hc/en-us/articles/360025333632-Group-Analytics#implementation){:target="_blank"}.
120+
- The Group call includes a trait that matches one of the configured Group identifier traits.
114121

115-
1. The Group Identifier Traits setting has one or more traits saved in the destination settings for Mixpanel.
116-
![Group ID Traits](/docs/connections/destinations/catalog/mixpanel/images/mixpanel-group-id-traits.png)
117-
2. You have created a group key of the same name in your Mixpanel [project settings](https://help.mixpanel.com/hc/en-us/articles/360025333632-Group-Analytics#implementation){:target="_blank"}.
118-
3. A Group trait with the same name as one of the configured Group Identifier Traits is sent with the group call.
122+
Here's an example:
119123

120124
```swift
121125
struct MyTraits: Codable {
122-
let username: String
123-
let email: String
124-
let plan: String
126+
let username: String
127+
let email: String
128+
let plan: String
125129
}
126130

127-
// ...
128-
129-
analytics.group(groupId: "group123", traits: MyTraits(
130-
username: "MisterWhiskers",
131-
email: "hello@test.com",
132-
plan: "premium"))
131+
analytics.group(
132+
groupId: "group123",
133+
traits: MyTraits(
134+
username: "MisterWhiskers",
135+
email: "hello@test.com",
136+
plan: "premium"
137+
)
138+
)
133139
```
134140

135141
Mixpanel supports multiple definitions of groups. For more information see [Mixpanel's Group Analytics documentation](https://help.mixpanel.com/hc/en-us/articles/360025333632-Group-Analytics){:target="_blank"}.

0 commit comments

Comments
 (0)