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
+15-14Lines changed: 15 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,12 +46,12 @@ Session tracking is only available when using Segment's new libraries: [Analytic
46
46
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
47
48
48
49
-
### Enable session tracking for Analytics.js 2.0
49
+
### Enable Amplitude session tracking for Analytics.js 2.0
50
50
51
51
The session tracking is automatically enabled on Javascript sources.
52
52
53
53
54
-
### Enable session tracking for Swift
54
+
### Enable Amplitude session tracking for Swift
55
55
56
56
To enable session tracking in Amplitude when using the [Segment Swift library](https://github.com/segmentio/analytics-swift):
57
57
1. Enable `trackApplicationLifecycleEvents` in your configuration.
@@ -62,7 +62,7 @@ To enable session tracking in Amplitude when using the [Segment Swift library](h
To enable session tracking in Amplitude when using the [Segment Kotlin library](https://github.com/segmentio/analytics-kotlin):
68
68
1. Enable `trackApplicationLifecycleEvents` in your configuration.
@@ -89,7 +89,7 @@ You can see the Segment event fields Amplitude accepts for each action in the Ac
89
89
90
90
By default a new Amplitude (Actions) destination comes with the following subscriptions.
91
91
92
-
You can select these subscriptions by choosing “Quick Setup”. You can enable, edit, and disable them from the screen that appears.
92
+
You can select these subscriptions by choosing "Quick Setup" when you first configure the destination. You can enable, edit, and disable them from the screen that appears.
@@ -104,16 +104,15 @@ You can select these subscriptions by choosing “Quick Setup”. You can enable
104
104
105
105
## Amplitude’s Log Event Action
106
106
107
-
Segment sends an event to Amplitude.
108
-
In the default configuration, this mapping is triggered when Segment sends a Track call to Amplitude (Actions).
107
+
In the default configuration, the Log Event mapping is triggered when Segment sends a Track call to Amplitude (Actions).
109
108
110
109
### Order Completed
111
110
112
111
Use the [Order Completed](/docs/connections/spec/ecommerce/v2/#order-completed) event to track revenue with Amplitude. This event records a list of products that a user purchased in a single transaction. This is the best way for sites that have a shopping cart system to track purchases.
113
112
114
113
You can currently use this event only for data coming from a server or web [source](/docs/connections/sources/). An `Order Completed` event from mobile using our bundled Amplitude integration will work the same as our standard `track` event documented above.
115
114
116
-
The example below shows an “Order Completed” event with its properties.
115
+
The example below shows an "Order Completed" event with its properties.
117
116
118
117
```js
119
118
analytics.track({
@@ -152,24 +151,26 @@ analytics.track({
152
151
})
153
152
```
154
153
155
-
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.
154
+
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.
156
155
157
156
### Track Revenue Per Product
158
157
159
158
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.
160
159
161
-
If you disable the setting (“off”), Segment sends a single revenue event with the total amount purchased. Revenue data is added to the Amplitude “Order Completed” event. The “Product Purchased” events do not contain any native Amplitude revenue data.
160
+
If you disable the setting ("off"), Segment sends a single revenue event with the total amount purchased. Revenue data is added to the Amplitude "Order Completed" event. The "Product Purchased" events do not contain any native Amplitude revenue data.
162
161
163
-
If you enable the setting (“on”), Segment sends a single revenue event for each product that was purchased. Revenue data is added to each “Product Purchased” event, and the “Order Completed” event does not contain any native Amplitude revenue data.
162
+
If you enable the setting ("on"), Segment sends a single revenue event for each product that was purchased. Revenue data is added to each "Product Purchased" event, and the "Order Completed" event does not contain any native Amplitude revenue data.
164
163
165
164
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.
166
165
167
166
### Send To Batch Endpoint
168
167
169
-
> info “”
168
+
169
+
> info ""
170
170
> This endpoint is available when you send data in Cloud-mode only.
171
171
172
-
If `true`, events are sent to Amplitude’s `batch` endpoint rather than to their `httpapi` endpoint. Because Amplitude’s `batch` endpoint throttles traffic less restrictively than the Amplitude `httpapi` endpoint, enabling this setting can help to reduce 429 errors (throttling errors) from Amplitude.
172
+
173
+
If `true`, events are sent to Amplitude’s `batch` endpoint rather than to their `httpapi` endpoint. Because Amplitude’s `batch` endpoint throttles traffic less restrictively than the Amplitude `httpapi` endpoint, enabling this setting can help to reduce 429 errors (throttling errors) from Amplitude.
173
174
174
175
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).
175
176
@@ -211,13 +212,13 @@ Following user fields are captured by the classic Amplitude destination in devic
211
212
212
213
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.
213
214
214
-
> info “”
215
+
> info ""
215
216
> Contact Segment support if you find features missing from the Amplitude (Actions) destination that were available in the classic Amplitude destination.
216
217
217
218
### Track Named, Categorized, or All Pages or Screens
218
219
219
220
The default Amplitude (Actions) subscription sends *all* Page and Screen calls.
220
-
To replicate the old behavior, change the trigger to include only events that contain `name` or `category`.
221
+
To replicate the old behavior, change the trigger to include only events that contain `name` or `category`.
0 commit comments