Skip to content

Commit d45cb80

Browse files
author
sanscontext
committed
misc fixes
1 parent 538a769 commit d45cb80

File tree

1 file changed

+15
-14
lines changed
  • src/connections/destinations/catalog/actions-amplitude

1 file changed

+15
-14
lines changed

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

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

4848

49-
### Enable session tracking for Analytics.js 2.0
49+
### Enable Amplitude session tracking for Analytics.js 2.0
5050

5151
The session tracking is automatically enabled on Javascript sources.
5252

5353

54-
### Enable session tracking for Swift
54+
### Enable Amplitude session tracking for Swift
5555

5656
To enable session tracking in Amplitude when using the [Segment Swift library](https://github.com/segmentio/analytics-swift):
5757
1. Enable `trackApplicationLifecycleEvents` in your configuration.
@@ -62,7 +62,7 @@ To enable session tracking in Amplitude when using the [Segment Swift library](h
6262
analytics?.add(plugin: AmplitudeSession(name: "Amplitude"))
6363
```
6464

65-
### Enable session tracking for Kotlin
65+
### Enable Amplitude session tracking for Kotlin
6666

6767
To enable session tracking in Amplitude when using the [Segment Kotlin library](https://github.com/segmentio/analytics-kotlin):
6868
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
8989

9090
By default a new Amplitude (Actions) destination comes with the following subscriptions.
9191

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.
9393

9494
| Subscription Name | Trigger | Amplitude Action | Non-default mapped fields |
9595
| ----------------- | ------------------------------------------------ | ---------------- | -------------------------------------------------------------- |
@@ -104,16 +104,15 @@ You can select these subscriptions by choosing “Quick Setup”. You can enable
104104

105105
## Amplitude’s Log Event Action
106106

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).
109108

110109
### Order Completed
111110

112111
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.
113112

114113
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.
115114

116-
The example below shows an Order Completed event with its properties.
115+
The example below shows an "Order Completed" event with its properties.
117116

118117
```js
119118
analytics.track({
@@ -152,24 +151,26 @@ analytics.track({
152151
})
153152
```
154153

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.
156155

157156
### Track Revenue Per Product
158157

159158
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.
160159

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.
162161

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.
164163

165164
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.
166165

167166
### Send To Batch Endpoint
168167

169-
> info “”
168+
169+
> info ""
170170
> This endpoint is available when you send data in Cloud-mode only.
171171
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.
173174

174175
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).
175176

@@ -211,13 +212,13 @@ Following user fields are captured by the classic Amplitude destination in devic
211212

212213
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.
213214

214-
> info “”
215+
> info ""
215216
> Contact Segment support if you find features missing from the Amplitude (Actions) destination that were available in the classic Amplitude destination.
216217
217218
### Track Named, Categorized, or All Pages or Screens
218219

219220
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`.
221222

222223
### Prefer Anonymous ID for Device ID
223224

0 commit comments

Comments
 (0)