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
[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.
6
+
[Branch](https://branch.io/?utm_source=segmentio&utm_medium=docs&utm_campaign=partners){:target="_blank”} empowers you to increase mobile revenue with enterprise-grade links built to acquire, engage, and measure customers across all devices, channels, and platforms. An industry-leading mobile measurement and deep linking platform, trusted by top ranking apps to increase efficiency and revenue.
7
7
8
-
## Getting Started
8
+
## Getting started
9
9
10
10
1. From the Segment web app, click **Catalog**.
11
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).
12
+
3. On Branch side you will need to [sign up for a free Branch account](http://branch.io/signup?bmp=segment){:target="_blank”} 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){:target="_blank”}.
14
14
5. Paste the Branch Key in the destination settings and click **Save**.
15
+
15
16
## Installation
16
17
17
-
You need to install the `@segment/analytics-react-native-plugin-branch` and the `react-native-branch`dependency.
18
+
You need to install the `@segment/analytics-react-native-plugin-branch` and the `react-native-branch`dependencies to use the Branch plugin.
Run `pod install` after the installation to autolink the Branch SDK.
30
31
31
-
See [`Branch React Native SDK`](https://github.com/BranchMetrics/react-native-branch-deep-linking-attribution)for more details of this dependency.
32
+
See the [Branch React Native SDK](https://github.com/BranchMetrics/react-native-branch-deep-linking-attribution){:target="_blank”} docs for more information about this dependency.
32
33
## Usage
33
34
34
-
Follow the [instructions for adding plugins](https://github.com/segmentio/analytics-react-native#adding-plugins) on the main Analytics client:
35
+
Follow the [instructions for adding plugins](https://github.com/segmentio/analytics-react-native#adding-plugins){:target="_blank”} on the main Analytics client.
35
36
36
-
In your code where you initialize the analytics client call the `.add(plugin)` method with an `BranchPlugin` instance:
37
+
In your code where you initialize the analytics client, call the `.add(plugin)` method with an `BranchPlugin` instance:
@@ -49,7 +50,7 @@ segmentClient.add({ plugin: new BranchPlugin() });
49
50
50
51
## Identify
51
52
52
-
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:
53
+
If you're not familiar with the Segment Spec, take a moment to understand what the [Identify method](/docs/connections/spec/identify/) does. An example call looks like this:
53
54
54
55
```ts
55
56
const { identify } =useAnalytics();
@@ -65,7 +66,7 @@ When you call `.identify('userId')`, Segment uses Branch's `setIdentity(userId)`
65
66
66
67
## Track
67
68
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
+
If you're not familiar with the Segment Spec, take a moment to understand what the [Track method](/docs/connections/spec/track/) does. An example call looks like this:
69
70
70
71
```ts
71
72
const { track } =useAnalytics();
@@ -79,7 +80,7 @@ track('View Product', {
79
80
When you call `track`, Segment translates it automatically and sends the event to Branch's `logEvent()` endpoint.
80
81
81
82
## 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
+
If you're not familiar with the Segment Spec, take a look to understand what the [Screen method](/docs/connections/spec/screen/) does. An example call looks like this:
0 commit comments