Skip to content

Commit b1ac877

Browse files
author
markzegarelli
authored
Merge pull request #1720 from segmentio/jenskene-patch-1
Add explanation for Device ID coalesce
2 parents e6f8a41 + dfbb306 commit b1ac877

File tree

1 file changed

+3
-0
lines changed
  • src/connections/destinations/catalog/actions-amplitude

1 file changed

+3
-0
lines changed

src/connections/destinations/catalog/actions-amplitude/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ Session tracking is only available when using Segment's new libraries: [Analytic
4545
Once you have a mapping, you can follow the steps in the Destinations Actions documentation on [Customizing mappings](/docs/connections/destinations/actions/#customizing-mappings).
4646

4747

48+
### Device ID Mappings
49+
The Amplitude destination requires that each event include either a Device ID or a User ID. If a User ID isn't present, Amplitude uses the a Device ID, and vice versa, if a Device ID isn't present, Amplitude uses the User ID. By default, Segment maps the Segment property `context.device.id` to the Amplitude property `Device ID`. If `context.device.id` isn't available, Segment maps the property `anonymousId` to the Amplitude `Device ID`. This is indicated by the following text in the Device ID field: `coalesce(` `context.device.id` `anonymousId` `)`.
50+
4851
### Enable session tracking for Analytics.js 2.0
4952

5053
The session tracking is automatically enabled on Javascript sources.

0 commit comments

Comments
 (0)