You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/connections/destinations/catalog/actions-amplitude/index.md
+36-38Lines changed: 36 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,24 +16,16 @@ and conversion.
16
16
> info ""
17
17
> This document is about a feature which is in beta. This means that the Destination Actions are in active development, and some functionality may change before it becomes generally available
18
18
19
-

20
19
21
20
> success ""
22
21
> **Good to know**: This page is about the [Actions-framework](/docs/connections/destinations/actions/) Amplitude Segment destination. There's also a page about the [non-Actions Amplitude destination](/docs/connections/destinations/catalog/amplitude/). Both of these destinations receives data _from_ Segment. There's also the [Amplitude Engage Segment source](/docs/connections/sources/catalog/cloud-apps/amplitude-cohorts/), which sends data _to_ Segment!
23
22
24
23
25
-
## Connection Modes for Amplitude (Actions) destination
26
24
27
-
The Amplitude (actions) destination does not offer a device-mode connection mode. If you're using one of Segment's new libraries ([Analytics.js 2.0](/docs/connections/sources/catalog/libraries/website/javascript/), [Swift](https://github.com/segmentio/analytics-swift) or [Kotlin](https://github.com/segmentio/analytics-kotlin)) with the Actions-framework version of the destination, you do not need the device-mode connection.
28
-
29
-
Most previous deployments of the Amplitude Segment destination used the device-mode connection to use the `session_id` tracking feature. The new Actions-framework Amplitude destination, includes session ID tracking by default. This means you don’t need to bundle any software to run on the user’s device, or write any code. It also means that you can use more of the Segment platform features on data going to Amplitude, such as Protocols filtering and transformations, and Personas identity resolution.
30
-
31
-
32
-
Session tracking is available with Segment's new libraries: [Analytics.js 2.0](/docs/connections/sources/catalog/libraries/website/javascript/), [Swift](https://github.com/segmentio/analytics-swift) or [Kotlin](https://github.com/segmentio/analytics-kotlin)
33
25
34
26
35
27
36
-
## Getting Started
28
+
## Getting started
37
29
38
30
1. Before you start, go to your [Amplitude workspace](https://analytics.amplitude.com){:target="_blank"}. Click **Settings** in the bottom left, then click **Projects** in the left menu. Select your **Project**. Copy the Amplitude API Key and Secret Key for the project.
39
31
2. From the Segment web app, click **Catalog**, then click **Destinations**.
@@ -45,9 +37,19 @@ Session tracking is available with Segment's new libraries: [Analytics.js 2.0](/
45
37
46
38
Once you have a mapping, you can follow the steps in the Destinations Actions documentation on [Customizing mappings](/docs/connections/destinations/actions/#customizing-mappings).
47
39
40
+
### Connection Modes for Amplitude (Actions) destination
41
+
42
+
The Amplitude (actions) destination does not offer a device-mode connection mode. If you're using one of Segment's new libraries ([Analytics.js 2.0](/docs/connections/sources/catalog/libraries/website/javascript/), [Swift](https://github.com/segmentio/analytics-swift) or [Kotlin](https://github.com/segmentio/analytics-kotlin)) with the Actions-framework version of the destination, you do not need the device-mode connection.
43
+
44
+
Most previous deployments of the Amplitude Segment destination used the device-mode connection to use the `session_id` tracking feature. The new Actions-framework Amplitude destination, includes session ID tracking by default. This means you don’t need to bundle any software to run on the user’s device, or write any code. It also means that you can use more of the Segment platform features on data going to Amplitude, such as Protocols filtering and transformations, and Personas identity resolution.
45
+
46
+
Session tracking is available with Segment's new libraries: [Analytics.js 2.0](/docs/connections/sources/catalog/libraries/website/javascript/), [Swift](https://github.com/segmentio/analytics-swift) or [Kotlin](https://github.com/segmentio/analytics-kotlin)
47
+
48
48
49
49
### Device ID Mappings
50
-
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
+
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.
51
+
52
+
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``)`.
51
53
52
54
### Enable session tracking for Analytics.js 2.0
53
55
@@ -76,19 +78,15 @@ To enable session tracking in Amplitude when using the [Segment Kotlin library](
76
78
```
77
79
78
80
79
-
## Available Amplitude Actions
80
-
81
-
Amplitude supports the following Actions:
81
+
## Important differences from the classic Amplitude destination
82
82
83
-
- Log Event
84
-
- Identify User
85
-
- Map User
86
-
- Group Identify User
83
+
The following user fields are captured by the classic Amplitude destination in device-mode (when it runs on the user’s device), but are not captured by Amplitude (Actions):
87
84
88
-
You can see the Segment event fields Amplitude accepts for each action in the Actions subscription set up page.
85
+
- Device Type (for example, Mac, PC, mobile device)
86
+
- Platform (for example iOS or Android)
89
87
90
88
91
-
## Quick set-up actions
89
+
## Pre-built subscriptions
92
90
93
91
By default a new Amplitude (Actions) destination comes with the following subscriptions.
94
92
@@ -101,11 +99,20 @@ You can select these subscriptions by choosing "Quick Setup" when you first conf
101
99
| Screen Calls | All **screen** calls from the connected source | Log Event | Event Type = Viewed `name`<br>for example, `Viewed Homescreen`|
102
100
| Identify Calls | All **identify** calls from the connected source | Identify User ||
103
101
104
-

105
102
103
+
## Available Amplitude Actions
104
+
105
+
Build your own subscriptions with the following Amplitude-supported actions:
106
+
107
+
-[Log Event](#log-event)
108
+
-[Identify User](#identify-user)
109
+
-[Map User](#map-user)
110
+
-[Group Identify User](#group-identify-user)
111
+
112
+
You can see the Segment event fields Amplitude accepts for each action in the Actions subscription set up page.
106
113
107
114
108
-
##Amplitude’s Log Event Action
115
+
### Log Event
109
116
110
117
In the default configuration, the Log Event mapping is triggered when Segment sends a Track call to Amplitude (Actions).
111
118
@@ -159,7 +166,7 @@ analytics.track({
159
166
When you send an "Order Completed" event from Segment, an "Order Completed" event appears in Amplitude for that purchase. An Amplitude event called "Product Purchased" is also created for each product in the purchase. All event properties, except `products`, are sent as `event_properties` of the Amplitude "Order Completed" event. Information about each product is present *only* on the individual "Product Purchased" events.
160
167
{% endcomment %}
161
168
162
-
### Track Revenue Per Product
169
+
####Track Revenue Per Product
163
170
164
171
Amplitude has two different ways to track revenue associated with a multi-product purchase. You can choose which method you want to use using the **Track Revenue Per Product** destination setting.
165
172
@@ -169,7 +176,7 @@ If you enable the setting ("on"), Segment sends a single revenue event for each
169
176
170
177
Make sure you format your events using the [Track method spec](/docs/connections/spec/track/). You must pass a `revenue` property, a `price` property, and a `quantity` property for each product in the products list.
171
178
172
-
### Send To Batch Endpoint
179
+
####Send To Batch Endpoint
173
180
174
181
175
182
> info ""
@@ -180,21 +187,21 @@ If `true`, events are sent to Amplitude’s `batch` endpoint rather than to thei
180
187
181
188
Amplitude’s `batch` endpoint throttles data when the rate of events sharing the same `user_id` or `device_id` exceeds an average of 1,000/second over a 30-second period. See the Amplitude documentation for more about [429 errors and throttling in Amplitude](https://developers.amplitude.com/#429s-in-depth).
182
189
183
-
## Identify User
190
+
###Identify User
184
191
185
192
In the default configuration, this mapping is triggered when Segment sends an Identify call to Amplitude (Actions).
186
193
187
194
This Action sets the user ID for a specific device ID, or updates the user properties. You can use this when you want to update user information without sending an Event to Amplitude.
188
195
189
196
190
-
## Map User
197
+
###Map User
191
198
192
199
In the default configuration, this mapping is triggered when Segment sends an Alias call to Amplitude (Actions).
193
200
194
201
This Action merges two users together that would otherwise have different User IDs tracked in Amplitude. You can use this when you want to merge the users without sending an Event to Amplitude.
195
202
196
203
197
-
## Group Identify User
204
+
###Group Identify User
198
205
199
206
In the default configuration, this mapping is triggered when Segment sends a Group call to Amplitude (Actions).
200
207
@@ -205,18 +212,7 @@ These Group updates only affect events that occur after you set up the Amplitude
205
212
> success ""
206
213
> If you are on a Business Tier Segment plan, you can use [Replay](/docs/guides/what-is-replay/) to run historical data through the Amplitude (Actions) destination to apply the grouping.
207
214
208
-
209
-
210
-
## Important differences from the classic Amplitude destination
211
-
212
-
The following user fields are captured by the classic Amplitude destination in device-mode (when it runs on the user’s device), but are not captured by Amplitude (Actions):
213
-
214
-
- Device Type (for example, Mac, PC, mobile device)
Most of the classic Amplitude destination settings were related to device-mode collection (for example, batching or Log Revenue V2), and do not apply to the Amplitude (Actions) destination, which runs in cloud-mode. The following sections discuss how to replicate the old settings where possible.
222
218
@@ -259,3 +255,5 @@ Location Tracking is a feature of Amplitude’s mobile SDKs and is not supported
259
255
This setting required that the user grant location permission for the mobile app. This is different from the IP-based location lookup that Amplitude can perform.
260
256
261
257
To work around this limitation, send `context.location.latitude` and `context.location.longitude` from your app, and let Amplitude perform the lookup.
0 commit comments