Skip to content

Commit 8ca279e

Browse files
committed
add rn
2 parents 54f5ce3 + b76c847 commit 8ca279e

File tree

21 files changed

+92
-216
lines changed

21 files changed

+92
-216
lines changed

scripts/changelog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const getLog = async (url = "") => {
1818
console.log(error)
1919
}
2020
}
21-
let libraries = ["analytics-android","analytics-ios"]
21+
let libraries = ["analytics-android","analytics-ios", "analytics-react-native", "analytics-java"]
2222

2323
const updateLog = async(library) => {
2424

src/_data/changelogs/analytics-android.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# AUTOGENERATED FROM GITHUB API. DO NOT EDIT
2-
# Releases last updated 2021-05-04
2+
# Releases last updated 2021-05-07
33
releases:
44
- version: 4.9.4
55
url: 'https://github.com/segmentio/analytics-android/releases/tag/4.9.4'

src/_data/changelogs/analytics-ios.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# AUTOGENERATED FROM GITHUB API. DO NOT EDIT
2-
# Releases last updated 2021-05-04
2+
# Releases last updated 2021-05-07
33
releases:
44
- version: 4.1.4
55
url: 'https://github.com/segmentio/analytics-ios/releases/tag/4.1.4'
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# AUTOGENERATED FROM GITHUB API. DO NOT EDIT
2+
# Releases last updated 2021-05-07
3+
releases:
4+
- version: 1.4.0
5+
url: 'https://github.com/segmentio/analytics-react-native/releases/tag/v1.4.0'
6+
date: '2021-02-09T00:13:10Z'
7+
notes: "# [1.4.0](https://github.com/segmentio/analytics-react-native/compare/v1.3.2...v1.4.0) (2021-02-08)\r\n\r\n### Bug Fixes\r\n\r\n- **android:** fix crash when promise resolves in debug mode ([#267](https://github.com/segmentio/analytics-react-native/issues/267)) ([a0e21d9](https://github.com/segmentio/analytics-react-native/commit/a0e21d9))\r\n- **package:** missing repo info ([#268](https://github.com/segmentio/analytics-react-native/issues/268)) ([6a2a93b](https://github.com/segmentio/analytics-react-native/commit/6a2a93b))\r\n- change React dependency to React-Core ([#254](https://github.com/segmentio/analytics-react-native/issues/254)) ([c51e689](https://github.com/segmentio/analytics-react-native/commit/c51e689))\r\n- don't call stringValue of strings ([#253](https://github.com/segmentio/analytics-react-native/issues/253)) ([226a9e4](https://github.com/segmentio/analytics-react-native/commit/226a9e4))\r\n\r\n### Features\r\n\r\n- **android:** allow opt-out for new lifecycle methods ([#256](https://github.com/segmentio/analytics-react-native/issues/256)) ([8dbadad](https://github.com/segmentio/analytics-react-native/commit/8dbadad))\r\n"
8+
- version: 1.4.4
9+
url: 'https://github.com/segmentio/analytics-react-native/releases/tag/v1.4.4'
10+
date: '2021-02-09T00:12:43Z'
11+
notes: "Bug Fixes\r\n-android: bump deps and fix config issues (#298) (5a2ed9b)\r\n-ios bridge to respect promise (#295) (640aa73)\r\n"
12+
- version: v1.3.1
13+
url: 'https://github.com/segmentio/analytics-react-native/releases/tag/v1.3.1'
14+
date: '2020-09-10T00:05:06Z'
15+
notes: "## [1.3.1](https://github.com/segmentio/analytics-react-native/compare/v1.3.0...v1.3.1) (2020-09-09)\r\n\r\n### Bug Fixes\r\n\r\n- **android:** bump android dependency ([#214](https://github.com/segmentio/analytics-react-native/issues/214)) ([acd0f2f](https://github.com/segmentio/analytics-react-native/commit/acd0f2f))\r\n- **ios:** bump ios dependency ([#217](https://github.com/segmentio/analytics-react-native/issues/217)) ([4848bbd](https://github.com/segmentio/analytics-react-native/commit/4848bbd))\r\n\r\n<a name=\"1.3.0\"></a>"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# AUTOGENERATED FROM GITHUB API. DO NOT EDIT
2+
# Releases last updated 2021-05-07
3+
releases: []

src/_data/sidenav/strat.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,6 @@ sections:
152152
title: Troubleshooting Analytics-React-Native
153153
- path: /connections/sources/catalog/libraries/mobile/react-native/react-faqs/
154154
title: React-Native FAQs
155+
- path: /connections/sources/catalog/libraries/mobile/react-native/changelog
156+
title: Analytics-React-Native Changelog
157+

src/connections/data-residency.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,33 @@ To begin with Local Data Storage, complete the following steps in your AWS accou
7171

7272
Segment requires this access to write raw data to your regionally hosted S3 bucket. Specifically, this allows Segment (as the Segment S3-copy user) to use `s3:PutObject`. To enable encryption at rest, use the default S3 mechanism. If you have server-side encryption enabled with AWS KMS managed keys, see the additional [required configuration step](/docs/connections/storage/catalog/amazon-s3/#encryption). To edit the bucket policy, right-click the bucket name in the AWS management console, and select **Edit policy**.
7373

74-
4. Create a new IAM role in your AWS account with a trust relationship to the role which allows Segment to use the Segment `workspace_id` as `externalID`.
74+
4. Create a new IAM role in your AWS account for Segment to assume. Attach the following trust relationship document to the role:
75+
```json
76+
{
77+
"Version": "2012-10-17",
78+
"Statement": [
79+
{
80+
"Sid": "",
81+
"Effect": "Allow",
82+
"Principal": {
83+
"AWS": [
84+
"arn:aws:iam::595280932656:role/segment-regional-archives-production-access"
85+
]
86+
},
87+
"Action": "sts:AssumeRole",
88+
"Condition": {
89+
"StringEquals": {
90+
"sts:ExternalId": [
91+
"WORKSPACE_ID"
92+
]
93+
}
94+
}
95+
}
96+
]
97+
}
98+
```
99+
**Note**: This IAM role is used for replays only. The writes to the bucket are performed directly by the user added in step 3.
100+
75101
5. Attach this IAM policy to the role defined in Step 4.
76102
```json
77103
{
@@ -90,7 +116,7 @@ To begin with Local Data Storage, complete the following steps in your AWS accou
90116
"Effect": "Allow",
91117
"Action": "s3:*Object*",
92118
"Resource": [
93-
"arn:aws:s3:::YOUR_BUCKET_NAME/*",
119+
"arn:aws:s3:::YOUR_BUCKET_NAME/*"
94120
]
95121
}
96122
]

src/connections/destination-data-control.md

Lines changed: 0 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -38,109 +38,3 @@ If you no longer want to track an event, you can either remove it from your code
3838
![](/docs/protocols/images/event-filters.png)
3939

4040
Once you block an event in Segment, we'll stop forwarding it to all of your Destinations, including your warehouses. You can remove it from your code at your leisure. In addition to blocking track calls, Business plan customers can block all Page and Screen calls, as well as Identify traits and Group properties. 
41-
42-
---
43-
44-
45-
46-
## How do I prevent new data from being allowed by default?
47-
48-
If you've solidified your tracking plan and don't want any rogue events finding their way to your warehouses and end tools, we recommend activating our new feature, **Schema Defaults**. When you lock your schema, or set your Schema Defaults to "Block," Segment will automatically prevent these calls from being sent downstream. You can activate this for new events—including `track`, `page`, and `screen` calls—or for new `identify` traits and `group` properties. 
49-
50-
Locking your schema only takes a few seconds and will protect your data from un-spec'd events or tracking errors. To configure your Schema Defaults, go to your Schema page, and then select "General" from the left-hand navigation.
51-
52-
![](images/schema-defaults.png)
53-
54-
55-
**Overview of Schema Default Settings**
56-
57-
**Default**
58-
59-
**Allow**
60-
61-
**Block**
62-
63-
**New Events**
64-
65-
All new events will be allowed in Segment and sent to all Destinations.
66-
67-
No new events will be allowed in Segment or sent to your Destinations. Any event that is already being tracked and part of your Schema will not be impacted.
68-
69-
**New Group Properties**
70-
71-
All new group properties will be allowed in Segment and sent to all Destinations.
72-
73-
No new group properties will be allowed in Segment or sent to your Destinations.
74-
75-
**New Identify Traits**
76-
77-
All new identify traits will be allowed in Segment and sent to all Destinations.
78-
79-
No new identify traits will be allowed in Segment or sent to your Destinations.
80-
81-
**Example: Order Completed**
82-
83-
For example, if you set your Schema Defaults for New Events to "Block," and a new event, `Order Completed`, is tracked, Segment will automatically block the event and it will not be sent to your warehouse or downstream tools. The event will continue to be blocked until you actively choose to allow it.
84-
85-
You will need to upgrade to the latest [iOS](/docs/connections/sources/catalog/libraries/mobile/ios/#install-the-sdk) and/or [Android](/docs/connections/sources/catalog/libraries/mobile/android/#step-1-install-the-library) SDKs for Schema Defaults to apply to events sent from mobile sources. 
86-
87-
## **What is considered a "new" event?**
88-
89-
New events refer to events that have not previously been sent to a given Source. Let's say you've only sent the following events from your Javascript source:
90-
91-
* `Products Searched`
92-
93-
* `Product List Viewed`
94-
95-
* `Product List Filtered`
96-
97-
98-
Your Schema Default setting will not have any impact on these three events because they are not considered new. You can manually block them, but your Schema Default setting will not change the status of these events. 
99-
100-
Here's what will happen the first time a new event, `Promotion Viewed`, is sent to this Source:
101-
102-
* **Schema Default Set to Allow:** `Promotion Viewed` will be "allowed," which means the event will be sent to all enabled Destinations.
103-
104-
* **Schema Default Set to Block:** `Promotion Viewed` will be "blocked," which means the event will not be sent to any Destinations.
105-
106-
107-
## **What happens to blocked events and properties? **
108-
109-
When an event or property is blocked, the name of the event or property will be added to your Schema page, but no data will be tracked. By default, data from blocked events and properties is not recoverable. You can always re-enable the event or property if you want to begin tracking it going forward.
110-
111-
If you're concerned about permanently discarding data from blocked events, you can use advanced settings to forward these events to a designated Source. From there, you can send your data to a separate S3 bucket or warehouse for further analysis. That way if you decide you _do_ want the data in your downstream tools, you can ask Segment to Replay the data into your server-side Destinations. If you choose to route blocked events, this will contribute to your MTU count. 
112-
113-
**How do I forward blocked events?**
114-
115-
First, you will want to create a new Source to receive data from blocked Events and Traits. This Source should only be configured to received blocked data, so make sure it isn't receiving data from anywhere else. We recommend creating a new "Javascript" source and naming it "Blocked Data from \[Source Name\]." 
116-
117-
After you have created a new source, go to the Schema page for your primary Source and then select "General" from the left-hand navigation. Under "Advanced Settings," you will see two options:
118-
119-
* Block and discard: select this option if you want to permanently discard data from blocked Events and Traits.
120-
121-
* Forward: select this option if you would like to forward data from blocked Events and Traits to a separate source.
122-
123-
124-
Select "Forward," and then select the new Source you created to receive blocked data. **As a reminder, if you choose to route blocked events, this will contribute to your MTU count. **
125-
126-
## **How am I charged for blocked events? **
127-
128-
Your bill is based on the number of Monthly Tracked Users (MTU). MTUs are the number of identified and anonymous users that you track with Segment. We only count users once per month, even if they perform multiple actions across your site or app. In most cases, blocked events will have no impact on your MTU count. If you choose to route blocked events, this will contribute to your MTU count. 
129-
130-
## **How do I configure notifications?**
131-
132-
While protecting the integrity of your data is helpful, we also want to flag any blocked events for you, so you can make any needed changes in your code or approve a new event. Source notifications will alert you when a new event is blocked due to your Schema Defaults. You can view these notifications in the Activity Feed in the app or subscribe to email notifications. 
133-
134-
You can view these notifications in the Activity Feed in the app or subscribe to email notifications. To subscribe to email notifications, go to your workspace settings, then click "Notification Settings," and subscribe to notifications for Sources by entering your email address and clicking "Save Changes." You can enter multiple email addresses separated by a comma.
135-
136-
## **When should I lock my schema? **
137-
138-
Whether you're just about to implement a new spec or you have been tracking the same events for years, Schema Defaults make it easy to protect your data and fix data quality issues.
139-
140-
Here are a few signs you may be ready to lock your schema:
141-
142-
* You are concerned about developers implementing rogue events
143-
144-
* You want to actively approve which events are tracked and routed to your downstream Destinations
145-
146-
* You have created a tracking plan and want to use Segment to enforce it

src/connections/destinations/add-destination.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,11 @@ To connect a source to more than one instance of a destination in the Segment we
115115
You must give each instance of the destination connected to the same source a unique name. Segment recommends that you use descriptive names rather than numbers, so other Segment users can understand which Segment destinations are linked to which tool instances. For example, you might use "Amplitude North America" and "Amplitude South America", instead of "Amplitude 1" and "Amplitude 2".
116116

117117
If you added the first instance of your destination before multi-instance destinations became available, that instance is automatically named for the destination with no other identifiers, for example "Amplitude". You cannot currently edit these first destinations' names.
118+
118119
Some destinations do not support having multiple instances connected to the same source. In that case, the option to add a second instance of that destination does not appear.
119120

121+
You can create unique destination filters for each destination instance connected to the same source.
122+
120123
### Connect to more than one instance of a destination using the Config API
121124

122125
You can add multiple instances of a destination using the Segment Config API. See the Segment Config [API documentation](https://reference.segmentapis.com/?version=latest#39ce0439-0969-48c3-ba49-b22a46c41060). If a destination does not support multi-instance, the Config API throws an appropriate error.
@@ -137,7 +140,6 @@ For more information see [the compatible destination lists below](#multi-instanc
137140

138141
### Other multi-instance destination considerations
139142

140-
- **Destination filters and multi-instance destinations:** Destination filters are specific to each source, and currently operate on *all* instances of a destination connected to that source. Support for destination filters for individual destination instances is coming soon.
141143

142144
- **Multiple Data Lakes:** Segment does not currently support connecting a single source to multiple instances of a data lakes destination. [Contact Segment Customer Success](https://segment.com/help/contact/) if this would be useful for your organization.
143145

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

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ Page calls are only sent to Braze if you have enabled either "Track All Pages" o
132132

133133
## Identify
134134

135+
> info "Tip"
136+
> Add Segment's open-source [Middleware](https://github.com/segmentio/segment-braze-mobile-middleware) tool to optimize your integration. This tool limits [Data Point](https://www.braze.com/docs/user_guide/onboarding_with_braze/data_points/) use by debouncing duplicate identify() calls from Segment. For more information, see the project's [README](https://github.com/segmentio/segment-braze-mobile-middleware/blob/master/README.md#how-does-this-work).
137+
138+
139+
135140
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:
136141

137142
```js
@@ -148,8 +153,8 @@ If you are using a device-mode connection, Braze's SDK also automatically assign
148153

149154
To send anonymous user data in cloud-mode, you must manually include the user's `braze_id` in all your Segment API calls in the `integrations.Braze.braze_id` or `context.integrations.Braze.braze_id` object.
150155

151-
> tip ""
152-
> **Tip!** Braze is complex. If you decide to use the `braze_id`, consider [contacting Segment Success Engineering](https://segment.com/help/contact/) or a Solutions Architect to validate your Braze implementation.
156+
> info "Tip"
157+
> Braze is complex. If you decide to use the `braze_id`, consider [contacting Segment Success Engineering](https://segment.com/help/contact/) or a Solutions Architect to validate your Braze implementation.
153158
154159
Segment's special traits recognized as Braze's standard user profile fields (in parentheses) are:
155160

@@ -168,6 +173,11 @@ All other traits (except their [reserved user profile fields](https://www.braze.
168173

169174
## Track
170175

176+
> info "Tip"
177+
> To lower [Data Point](https://www.braze.com/docs/user_guide/onboarding_with_braze/data_points/) use, send only the Events which are relevant for campaigns and segmentation to the Braze destination. For more information, see /docs/protocols/schema/.
178+
179+
180+
171181
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:
172182

173183
```
@@ -507,8 +517,8 @@ The following custom event appears in Braze on the user’s profile:
507517

508518
![](images/last_viewed-track-braze.png)
509519

510-
> success ""
511-
> **Tip**: You can change the name of the “computed trait” event that Braze receives by going to the Personas Destination Connection Settings.
520+
> info "Tip"
521+
> You can change the name of the “computed trait” event that Braze receives in the Personas Destination Connection Settings.
512522
513523
### Audiences in Braze
514524

@@ -548,8 +558,8 @@ The following custom event appears in Braze on the user’s profile when they en
548558

549559
![](images/dormant-track-braze.png)
550560

551-
> success ""
552-
> **Tip**: You can change the name of the “Audience Entered” event that Braze receives from the Personas Destination Connection Settings.
561+
> info "Tip"
562+
> You can change the name of the “Audience Entered” event that Braze receives in the Personas Destination Connection Settings.
553563
554564
## Setting up Personas with Braze
555565

0 commit comments

Comments
 (0)