Skip to content

Commit ee51f2b

Browse files
authored
Merge pull request #6200 from segmentio/joeynmq-patch-2
Add info about Insert ID
2 parents 16b99c0 + bf526c4 commit ee51f2b

File tree

1 file changed

+8
-0
lines changed
  • src/connections/destinations/catalog/mixpanel

1 file changed

+8
-0
lines changed

src/connections/destinations/catalog/mixpanel/index.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,14 @@ If you're testing in Xcode remember you must first background the app, then the
496496
In Device-mode, when a `distinct_id` is present in the browser, it is automatically sent to Mixpanel. In Cloud-mode, the `distinct_id` is set to Segment's `userId` if one is present. If there is no `userId` on the payload, `anonymousId` is set instead.
497497

498498

499+
### Insert ID
500+
501+
`$insert_id` is only available for cloud events. For the Mixpanel (Legacy) destination, Segment generates `$insert_id` from the messageId, event name, and Mixpanel namespace constant using the [uuidv5](https://developer.hashicorp.com/terraform/language/functions/uuidv5) function:
502+
```javascript
503+
const insertId = uuidv5(`${messageId}:${projectId}:${eventName}`, MIXPANEL_NAMESPACE)
504+
```
505+
506+
499507
### IP
500508

501509
If an `ip` property is passed to Mixpanel, the value will be interpreted as the IP address of the request and therefore automatically parsed into Mixpanel geolocation properties (City, Country, Region). After that IP address has been parsed, they will throw out the IP address and only hold onto those resulting geolocation properties. As such, if you want to display an IP address as a property within the Mixpanel UI or within raw data, you will simply want to slightly modify the naming convention for that property.

0 commit comments

Comments
 (0)