Skip to content

Commit ae914c3

Browse files
authored
Merge pull request #4080 from segmentio/3972-content-amplitude-actions-session-id-stored-in-local-storage
Add Amplitude Session ID Info #3972
2 parents 2606cad + db73980 commit ae914c3

File tree

1 file changed

+8
-7
lines changed
  • src/connections/destinations/catalog/actions-amplitude

1 file changed

+8
-7
lines changed

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ Initially, the Log Event Action was reporting purchases to Amplitude for all eve
4141

4242
To resolve this, purchase reporting takes place in a new Action called Log Purchase.
4343

44-
For instances created prior to before the Log Purchases action was released, you need to manually add the Log Purchases Action to report purchases to Amplitude.
44+
For instances created prior to before the Log Purchases action was released, you need to manually add the Log Purchases Action to report purchases to Amplitude.
4545

46-
To manually add the Log Purchases Action:
46+
To manually add the Log Purchases Action:
4747
1. Add a new Mapping for the Log Purchases Action. The default trigger for this action is Order Completed events.
4848
2. Modify the Trigger if you need to report purchases for any other events.
49-
3. Modify the Trigger of Log Event to exclude these same events. This helps you to avoid sending the same event twice.
50-
4. Enable the Log Purchases mapping.
49+
3. Modify the Trigger of Log Event to exclude these same events. This helps you to avoid sending the same event twice.
50+
4. Enable the Log Purchases mapping.
5151

5252
### Connection Modes for Amplitude (Actions) destination
5353

@@ -65,8 +65,9 @@ By default, Segment maps the Segment property `context.device.id` to the Amplitu
6565

6666
### Enable session tracking for Analytics.js 2.0
6767

68-
The session tracking is automatically enabled on JavaScript sources.
68+
JavaScript sources automatically enable session tracking.
6969

70+
The session ID Segment passes to Amplitude stores locally in a key-value pair. View the value associated with the `analytics_session_id`key to access the session ID.
7071

7172
### Enable Amplitude session tracking for Swift
7273

@@ -93,7 +94,7 @@ To enable session tracking in Amplitude when using the [Segment Kotlin library](
9394

9495
To enable session tracking in Amplitude when using the [Segment iOS library](https://github.com/segmentio/analytics-ios):
9596
1. Add the [Amplitude Session middleware](https://github.com/segment-integrations/analytics-ios-integration-amplitude/blob/amplitude-session/Pod/Classes/SEGAmplitudeSession.m) to your project.
96-
2. Add the middleware & enable `trackApplicationLifecycleEvents` in your configuration
97+
2. Add the middleware & enable `trackApplicationLifecycleEvents` in your configuration:
9798
```objective-c
9899
NSString *const SEGMENT_WRITE_KEY = @" ... ";
99100
SEGAnalyticsConfiguration *configuration = [SEGAnalyticsConfiguration configurationWithWriteKey:SEGMENT_WRITE_KEY];
@@ -109,7 +110,7 @@ To enable session tracking in Amplitude when using the [Segment Android library]
109110
```gradle
110111
implementation 'com.segment.analytics.android.integrations:amplitude:3.1.0'
111112
```
112-
3. Add the middleware & enable `trackApplicationLifecycleEvents` in your configuration
113+
3. Add the middleware & enable `trackApplicationLifecycleEvents` in your configuration:
113114
```java
114115
String SEGMENT_WRITE_KEY = " ... ";
115116
analytics = new Analytics.Builder(this, SEGMENT_WRITE_KEY)

0 commit comments

Comments
 (0)