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
[Braze](https://www.braze.com/), formerly Appboy, is an engagement platform that empowers growth by helping marketing teams to build customer loyalty through mobile, omni-channel customer experiences.
7
-
8
-
Braze’s destination plugin code is open source and available on GitHub. You can view it [here.](https://github.com/braze-inc/analytics-swift-braze). This destination plugin is maintained by Braze. For any issues with the destination plugin code, please reach out to Braze's support.
6
+
[Branch](https://branch.io/?utm_source=segmentio&utm_medium=docs&utm_campaign=partners) empowers you to increase mobile revenue with enterprise-grade links built to acquire, engage, and measure across all devices, channels, and platforms. An industry-leading mobile measurement and deep linking platform, trusted by the most top ranking apps to increase efficiency and revenue.
9
7
10
8
## Getting Started
11
9
10
+
1. From the Segment web app, click **Catalog**.
11
+
2. Search for "Branch Metrics" in the Catalog, select it, and choose which of your sources to connect the destination to.
12
+
3. On Branch side you will need to [sign up for a free Branch account](http://branch.io/signup?bmp=segment) and follow the steps on their Dashboard to complete set up.
13
+
4. Copy your `Branch Key` from the Settings page of your [Branch dashboard](https://dashboard.branch.io/#/settings).
14
+
5. Paste the Branch Key in the destination settings and click **Save**.
15
+
## Installation
16
+
17
+
You need to install the `@segment/analytics-react-native-plugin-branch` and the `react-native-branch` dependency.
If you're not familiar with the Segment Specs, take a look to understand what the [Identify method](/docs/connections/spec/identify/) does. An example call would look like:
When you call `.identify('userId')`, Segment uses Branch's `setIdentity(userId)` method to send the `userId` that was passed in.
65
+
66
+
## Track
67
+
68
+
If you're not familiar with the Segment Specs, take a look to understand what the [Track method](/docs/connections/spec/track/) does. An example call would look like:
69
+
70
+
```ts
71
+
const { track } =useAnalytics();
72
+
73
+
track('View Product', {
74
+
productId: 123,
75
+
productName: 'Striped trousers',
76
+
});
77
+
```
78
+
79
+
When you call `track`, Segment translates it automatically and sends the event to Branch's `logEvent()` endpoint.
80
+
81
+
## Screen
82
+
If you're not familiar with the Segment Specs, take a look to understand what the [Page method](/docs/connections/spec/page/) does. An example call would look like:
83
+
84
+
```ts
85
+
const { screen } =useAnalytics();
12
86
13
-
1. From the Segment web app, click **Catalog**.
14
-
2. Search for "Braze" in the Catalog, select it, and choose which of your sources to connect the destination to.
15
-
3. In the Destination Settings, add the **API Key**, found in the Braze Dashboard in *App Settings > Manage App Group*.
16
-
4. Set up a new App Group REST API Key in the Braze Dashboard in *App Settings > Developer Console > API Settings*. For more information, see [Creating and Managing REST API Keys](https://www.braze.com/docs/api/basics/#creating-and-managing-rest-api-keys) in the Braze documentation.
17
-
- Select the `users.track` endpoint in the **User Data** section.
87
+
screen('ScreenName', {
88
+
productSlug: 'example-product-123',
89
+
});
90
+
```
91
+
Segment sends Screen Events to Branch's `logEvent()` endpoint.
0 commit comments