Files
posthog.com/contents/docs/product-analytics/_snippets/how-to-capture-identified-events-ios.mdx
Vincent (Wen Yu) Ge 4fec074149 Split ios sdk pages (#13379)
* split ios sdk pages

* Update contents/docs/libraries/ios/index.mdx

Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>

* review comments

* Autocapture, config table

* Apply suggestion from @ivanagas

Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>

* Unique import names

* Address comments

---------

Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>
Co-authored-by: Eli Kinsey <eli@ekinsey.dev>
2025-10-31 03:50:51 +00:00

9 lines
778 B
Plaintext

If you've set the [`personProfiles` config](/docs/libraries/ios/configuration#all-configuration-options) to `IDENTIFIED_ONLY` (the default option), anonymous events are captured by default. Then, to capture identified events, call any of the following functions:
- [`identify()`](/docs/product-analytics/identify)
- [`alias()`](/docs/product-analytics/identify#alias-assigning-multiple-distinct-ids-to-the-same-user)
- [`group()`](/docs/product-analytics/group-analytics)
When you call any of these functions, it creates a [person profile](/docs/data/persons) for the user. Once this profile is created, all subsequent events for this user will be captured as identified events.
Alternatively, you can set `personProfiles` to `ALWAYS` to capture identified events by default.