-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add group identifier to user profile
- Loading branch information
Myron Fung
authored and
Myron Fung
committed
Oct 28, 2024
1 parent
8031484
commit 4a992a4
Showing
13 changed files
with
286 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -252,6 +252,7 @@ You can set properties on a user profile with [`people.set(property:to:)`](https | |
|
||
If a profile property already exist, if will be overwritten with the latest value provided in the method. If a profile property does not exist, it will be added to the profile. | ||
|
||
**Example Usage** | ||
```swift Swift | ||
/// You must call identify to associate the profile update with the user | ||
Mixpanel.mainInstance().identify(distinctId: "12345") | ||
|
@@ -417,6 +418,22 @@ Mixpanel.mainInstance().track(event: "some_event") | |
|
||
``` | ||
|
||
### Adding Group Identifiers to User Profiles | ||
|
||
To connect group information to a user profile, include the `group_key` and `group_id` as a user profile property using the `.people.set()` call. | ||
|
||
**Example Usage** | ||
|
||
```swift Swift | ||
/// You must call identify to associate the profile update with the user | ||
Mixpanel.mainInstance().identify(distinctId: "12345") | ||
|
||
// set group key "company" as a user prop | ||
// with group id "mixpanel" as value | ||
Mixpanel.mainInstance().people.set(properties: ["company":"mixpanel", "$email":"[email protected]"]) | ||
|
||
``` | ||
|
||
### Setting Group Profile Properties | ||
Create a group profiles by setting group properties, similar to a user profile. For example, you may want to describe a company group with properties such as "ARR", "employee_count", and "subscription". | ||
|
||
|
Oops, something went wrong.