Skip to content

Commit 6df979d

Browse files
authored
Merge pull request #8064 from segmentio/DOCSPLAT-2990-small-changes
DOCSPLAT 2990 Some small changes to simplify the serialization
2 parents 04ae2ca + 9e9b17c commit 6df979d

File tree

4 files changed

+16
-15
lines changed

4 files changed

+16
-15
lines changed

src/connections/destinations/catalog/castle/index.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ Calls are now visible in Castle dashboards in real-time.
4747

4848
2. Next, add the Castle destination to your analytics instance:
4949

50-
```swift
51-
let analytics = Analytics(configuration: Configuration(writeKey: "<YOUR_WRITE_KEY_HERE>"))
52-
53-
let castleDestination = CastleDestination(userJwt: "<USER_JWT>")
54-
analytics.add(plugin: castleDestination)
55-
```
50+
```swift
51+
let analytics = Analytics(configuration: Configuration(writeKey: "<YOUR_WRITE_KEY_HERE>"))
52+
53+
let castleDestination = CastleDestination(userJwt: "<USER_JWT>")
54+
analytics.add(plugin: castleDestination)
55+
```
5656

5757

5858
### Android
@@ -73,10 +73,10 @@ Calls are now visible in Castle dashboards in real-time.
7373

7474
2. Next, add the Castle destination to your analytics instance:
7575

76-
```kotlin
77-
analytics = Analytics("<YOUR WRITE KEY>", applicationContext)
78-
analytics.add(plugin = CastleDestination(userJwt = "<USER_JWT>"))
79-
```
76+
```kotlin
77+
analytics = Analytics("<YOUR WRITE KEY>", applicationContext)
78+
analytics.add(plugin = CastleDestination(userJwt = "<USER_JWT>"))
79+
```
8080

8181

8282
## Page
@@ -102,7 +102,6 @@ analytics.track('Added to Cart')
102102

103103
Segment sends Track calls to Castle as a `$custom` events.
104104

105-
***
106105

107106

108107

src/connections/destinations/catalog/doubleclick-floodlight/index.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ After you finish configuring Doubleclick Floodlight, Segment maps the following
2727
- `u` values (if any) are pulled from your property mapping setting.
2828
- `dc_lat` is set to `0` or `1` depending on whether the device has **Limit Ad Tracking** enabled (for mobile data only).
2929

30-
**Important:** Floodlight requires that you [set a `User-Agent` header](images/cDlD6KmuuOK.png) with that of the app where the track event took place. The Segment Android and Analytics.js (JavaScript) library automatically collect the `userAgent`. However you must manually send the user agent string inside the `context` object if you are using the iOS library. If `context.userAgent` is not provided, Segment tries to generate a user agent string based on some device and operating system information that is already has.
30+
**Important:** Floodlight requires that you set a `User-Agent` header with that of the app where the track event took place.
31+
32+
![User-Agent header.](images/cDlD6KmuuOK.png)
33+
34+
The Segment Android and Analytics.js (JavaScript) library automatically collect the `userAgent`. However you must manually send the user agent string inside the `context` object if you are using the iOS library. If `context.userAgent` is not provided, Segment tries to generate a user agent string based on some device and operating system information that is already has.
3135

3236
A generated user agent string might look something like the following:
3337

src/connections/destinations/catalog/engage-messaging/index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,3 @@ analytics.track('Login Button Clicked')
4444
```
4545

4646
Segment sends Track calls to Engage Messaging as a `track` event.
47-
48-
---

src/connections/destinations/catalog/optimizely-full-stack/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ This requires that customers include a native Optimizely implementation before t
3434
3. Create a native Optimizely instance in your server environment so you can access Optimizely decisioning methods like `activate`, `isFeatureEnabled`.
3535
4. Finally, define any [`events`](https://docs.developers.optimizely.com/full-stack/docs/create-events){:target="_blank"} and [`attributes`](https://docs.developers.optimizely.com/full-stack/docs/define-attributes){:target="_blank"} in your Optimizely dashboard, and to associate `metrics` with the appropriate Optimizely Experiments. Segment maps Track event names to Optimizely `eventName` - the `eventName` corresponds to an experiment `metric`. In addition, Segment maps Track event `context.traits` to Optimizely `attributes`.
3636

37-
> warning "Optimizely SDKs v1.x or v2.x require matching `attributes` objects for correct attribution"
37+
> warning "Optimizely SDKs v1.x or v2.x require matching attributes objects for correct attribution"
3838
> If you use Optimizely SDKs v1.x or v2.x and use any `activate` or `isFeatureEnabled` calls, the `attributes` object for each user must match the `attributes` object passed to any Track calls for that user ID so that it can be correctly attributed on the Optimizely results page.
3939
4040
If you are using Optimizely SDKs v3+, [Easy Event Tracking](https://blog.optimizely.com/2019/02/26/introducing-easy-event-tracking-the-easier-way-to-understand-and-optimize-the-customer-journey/){:target="_blank"} is enabled by default for decision events. Set up does not require maintaining the attributes of a user as long as the user ID stays the same between Optimizely `activate` and `isFeatureEnabled` calls and Segment Track calls to have Optimizely `metrics` populated in the Optimizely results page. If you would like to segment your Optimizely results by user `attribute`, then make sure the `attributes` passed in for the `activate` and `isFeatureEnabled` calls match the `attributes` passed in for the Track calls for that user id.

0 commit comments

Comments
 (0)