Skip to content

Commit 8951375

Browse files
committed
chore: fixes for serialization of batch 6.3
1 parent 6d30a71 commit 8951375

File tree

7 files changed

+33
-23
lines changed

7 files changed

+33
-23
lines changed

src/connections/destinations/catalog/urban-airship/index.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ or setting up automation rules.
2929

3030
1) Include the Urban Airship dependency in the project's build.gradle file:
3131

32+
```json
3233
repositories {
3334
...
3435

@@ -44,11 +45,11 @@ or setting up automation rules.
4445
// Urban Airship SDK
4546
compile 'com.urbanairship.android:segment-integration:1.0.+'
4647
}
47-
48+
```
4849

4950
2) Verify the `applicationId` is set in the project's build.gradle file:
5051

51-
52+
```json
5253
android {
5354
...
5455

@@ -58,57 +59,65 @@ or setting up automation rules.
5859
applicationId "com.example.application"
5960
}
6061
}
61-
62+
```
6263

6364
3) Add the Urban Airship Destination factory:
6465

66+
```java
6567
Analytics analytics = new Analytics.Builder(context, writeKey)
6668
.use(UrbanAirshipIntegration.FACTORY)
6769
...
6870
.build();
71+
```
6972

7073

7174
### Enabling user notifications
7275

7376
Once the Urban Airship destination is ready, you can enable user notifications with the following:
7477

78+
```java
7579
analytics.onIntegrationReady(UrbanAirshipIntegration.URBAN_AIRSHIP_KEY, new Analytics.Callback<Object>() {
7680
@Override
7781
public void onReady(Object instance) {
7882
UAirship airship = (UAirship) instance;
7983
airship.getPushManager().setUserNotificationsEnabled(true);
8084
}
8185
});
82-
86+
```
8387

8488
## iOS
8589

8690
### Setup
8791

8892
1) Add the Urban Airship Segment Destination pod to your project's Podfile:
8993

94+
```objc
9095
pod "UrbanAirship-iOS-Segment-Integration"
91-
96+
```
9297

9398
2) Use the Urban Airship Destination:
9499

100+
```objc
95101
SEGAnalyticsConfiguration *config = [SEGAnalyticsConfiguration configurationWithWriteKey:@"YOUR_WRITE_KEY"];
96102

97103
[config use:[SEGUrbanAirshipIntegrationFactory instance]];
98104

99105
[SEGAnalytics setupWithConfiguration:config];
100-
106+
```
101107
102108
### Enabling user notifications
103109
104110
Once the Urban Airship destination is ready, you can enable user notifications with the following:
105111
112+
```objc
106113
[UAirship push].userPushNotificationsEnabled = YES;
107-
114+
```
108115

109116
To listen for when the Urban Airship destination is ready, listen for the `SEGAnalyticsIntegrationDidStart` event in `NSNotificationCenter`:
110117

118+
```objc
111119
[[[NSNotificationCenter defaultCenter] addObserver:self
112120
selector:@selector(airshipReady)
113121
name:@"io.segment.analytics.integration.did.start"
114122
object:[SEGUrbanAirshipIntegrationFactory instance].key];
123+
```

src/connections/destinations/catalog/user-com/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Sending a `.group()` request allows to create or update a company profile and as
5252

5353
The user that owns the `userId` on this event will be associated with this company.
5454

55-
Any custom traits of the `.group()` call will follow same logic as `Identify` method. Semantic traits that are mapped are: `address`, `description`, `email`, `employees`, `name`, `phone`. **NOTE**: to make sure types of custom traits defined in database reflect your expectations, visit **App settings > Companies > Company attributes** at [app.user.com](https://user.com/en{:target="_blank"}
55+
Any custom traits of the `.group()` call will follow same logic as `Identify` method. Semantic traits that are mapped are: `address`, `description`, `email`, `employees`, `name`, `phone`. **NOTE**: to make sure types of custom traits defined in database reflect your expectations, visit **App settings > Companies > Company attributes** at [app.user.com](https://user.com/en){:target="_blank"}
5656

5757
## Troubleshooting
5858

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,6 @@ In an account, events can have at most 25 attributes of each data type type (i.e
9898

9999
The `reset` call must be invoked when a user is logged out.
100100

101-
- - -
102-
103101
## Features
104102

105103
### Push Notifications

src/connections/destinations/catalog/whale-alerts/index.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,17 @@ This is an introduction to how Segment and Whalr work together and how to get Wh
2828

2929
The first step is to send Whalr your customer's email addresses using the Segment IDENTIFY call. You should send this the first time a lead is identified with an email address, and every time a user logs in after that. This is sent as a JSON message in the standard Segment format, and the minimum information required is:
3030

31-
{
32-
"type" : "identify",
31+
```json
32+
{
33+
"type": "identify",
3334

34-
"userId" : [however you identify your customer],
35+
"userId": [however you identify your customer],
3536

36-
"traits" : {
37-
"email" : [email address]
38-
}
39-
}
37+
"traits": {
38+
"email": [email address]
39+
}
40+
}
41+
```
4042

4143
As Segment notes, using the email address as a unique identifier is not a good idea because emails change, people have multiple email addresses, etc. However, if that's how you're set up, Whalr supports it, you just need to supply the email address twice: once as the userID and once as the email address.
4244

@@ -48,7 +50,9 @@ In addition, studies show a negative correlation between the number fields and t
4850

4951
As noted above, by default Segment sends a PAGE event every time a customer visits a page. You can also create custom messages using the TRACK method. You can track any event you are interested in, such as signing up to a newsletter or responding to a campaign. For example, you might add the following JavaScript code to an email signup form on your website:
5052

51-
analytics.track("email signup")
53+
```js
54+
analytics.track("email signup")
55+
```
5256

5357
Segment adds a host of information, such as userId, IP address, location, browser type, UTM tracking codes, etc. Whalr then adds its own contextual information, such as how often a person visits, how big the company he works for is, etc. The more detail Whalr has, the better our machine learning algorithms can learn the contextual clues that reflect buying behaviour, and notify you which customers are exhibiting this behavior. Whalr analyzes profiles, events, engagement (by individuals and groups), and many other metrics to predict which customers will buy based on matching their behavior to past buying behaviors observed. Just as Netflix can recommend a movie with 90% confidence, Whalr can tell you a customer will convert with 90% probability. Stop wasting your time trying to chase every contact, or ignoring valuable contacts just because they signed up with a gmail address! Whalr isn't analytics, it's customer-specific, and it empowers your sales team to do what they do best--sell!
5458

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ The [Wishpond JavaScript (browser) Integration](https://github.com/wishpond-dev/
1111
Wishpond works with Segment's client-side JavaScript library: Analytics.js.
1212

1313

14-
1. From your Segment UI's Destinations page click on "Add Destination".
15-
2. Search for "Wishpond" in the Catalog, select it, and choose which of your sources to connect the destination to.
14+
1. From your Segment UI's Destinations page click on "Add Destination".
15+
2. Search for "Wishpond" in the Catalog, select it, and choose which of your sources to connect the destination to.
1616
3. In the destination settings, enter your Merchant ID and Trackey Key from Wishpond's ["API Keys" dialog](https://www.wishpond.com/central/welcome?api_keys=true){:target="_blank"}. These are also found in your Wishpond Account in the "API Keys" dropdown under your account name in the top right corner.
1717
4. Segment automatically initializes Wishpond's Tracking Code with your Tracking Key and Merchant ID when it next loads Analytics.js.
1818

@@ -69,7 +69,6 @@ A new event will be added to the lead that the current session is tracking. The
6969

7070
To more details how Wishpond's identify works visit [Wishpond API Docs: #track](http://developers.wishpond.com/#tracking-events){:target="_blank"}.
7171

72-
- - -
7372
## Troubleshooting/ FAQ
7473

7574
### Destination is not working properly

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Worthy Destination
33
rewrite: true
4-
---
4+
---
55

66
[Worthy.ai](https://worthy.ai){:target="_blank"} helps advertisers improve their marketing efficiency through using predictive analytics and signal testing.
77

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Youbora Destination
33
id: 59c04bd6432df886f42eea37
44
---
5-
### Web Destination
5+
## Web Destination
66

77
When you enable Youbora in the Segment web app, your changes appear in the Segment CDN in about 45 minutes, and then Analytics.js starts asynchronously loading Youbora's JavaScript onto your page. (This means you should remove Youbora's snippet from your page.)
88

0 commit comments

Comments
 (0)