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
{{ message }}
This repository was archived by the owner on Jun 27, 2023. It is now read-only.
* feat(integrations): pass integrationOptions down to Android
* feat(integrations): pass integrationOptions down in iOS
* feat(integrations): pass integrations in an options parameter
* feat(integrations): fix test
* feat(integrations): remove a rogue .only
* feat(ios): fix typo
* feat(integrations): update middleware to pass in integrations directly
* feat(integrations): fix linting
* feat(integrations): add test for middleware integrations
* feat(integrations): fix linting
* feat(integrations): add integrations to screen and alias
* feat(integrations): code style fixes
*Defined in [analytics.ts:263](https://github.com/segmentio/analytics-react-native/blob/master/packages/core/src/analytics.ts#L263)*
58
+
*Defined in [analytics.ts:266](https://github.com/segmentio/analytics-react-native/blob/master/packages/core/src/analytics.ts#L266)*
59
59
60
60
Merge two user identities, effectively connecting two sets of user data as one. This may not be supported by all integrations.
61
61
62
62
When you learn more about who the group is, you can record that information with group.
63
63
64
64
**Parameters:**
65
65
66
-
| Name | Type | Description |
67
-
| ------ | ------ | ------ |
68
-
| newId |`string`| The new ID you want to alias the existing ID to. The existing ID will be either the previousId if you have called identify, or the anonymous ID. |
66
+
| Name | Type | Default value | Description |
67
+
| ------ | ------ | ------ | ------ |
68
+
| newId |`string`| - | The new ID you want to alias the existing ID to. The existing ID will be either the previousId if you have called identify, or the anonymous ID. |
69
+
|`Default value` options |[Options]()| {} |
69
70
70
71
**Returns:**`Promise`<`void`>
71
72
@@ -97,7 +98,7 @@ ___
97
98
98
99
▸ **disable**(): `Promise`<`void`>
99
100
100
-
*Defined in [analytics.ts:302](https://github.com/segmentio/analytics-react-native/blob/master/packages/core/src/analytics.ts#L302)*
101
+
*Defined in [analytics.ts:305](https://github.com/segmentio/analytics-react-native/blob/master/packages/core/src/analytics.ts#L305)*
101
102
102
103
Completely disable the sending of any analytics data.
103
104
@@ -112,7 +113,7 @@ ___
112
113
113
114
▸ **enable**(): `Promise`<`void`>
114
115
115
-
*Defined in [analytics.ts:292](https://github.com/segmentio/analytics-react-native/blob/master/packages/core/src/analytics.ts#L292)*
116
+
*Defined in [analytics.ts:295](https://github.com/segmentio/analytics-react-native/blob/master/packages/core/src/analytics.ts#L295)*
116
117
117
118
Enable the sending of analytics data. Enabled by default.
118
119
@@ -127,7 +128,7 @@ ___
127
128
128
129
▸ **flush**(): `Promise`<`void`>
129
130
130
-
*Defined in [analytics.ts:283](https://github.com/segmentio/analytics-react-native/blob/master/packages/core/src/analytics.ts#L283)*
131
+
*Defined in [analytics.ts:286](https://github.com/segmentio/analytics-react-native/blob/master/packages/core/src/analytics.ts#L286)*
131
132
132
133
Trigger an upload of all queued events.
133
134
@@ -142,7 +143,7 @@ ___
142
143
143
144
▸ **getAnonymousId**(): `Promise`<`string`>
144
145
145
-
*Defined in [analytics.ts:307](https://github.com/segmentio/analytics-react-native/blob/master/packages/core/src/analytics.ts#L307)*
146
+
*Defined in [analytics.ts:310](https://github.com/segmentio/analytics-react-native/blob/master/packages/core/src/analytics.ts#L310)*
*Defined in [analytics.ts:238](https://github.com/segmentio/analytics-react-native/blob/master/packages/core/src/analytics.ts#L238)*
182
+
*Defined in [analytics.ts:240](https://github.com/segmentio/analytics-react-native/blob/master/packages/core/src/analytics.ts#L240)*
181
183
182
184
Associate a user with their unique ID and record traits about them.
183
185
@@ -189,6 +191,7 @@ When you learn more about who your user is, you can record that information with
189
191
| ------ | ------ | ------ | ------ |
190
192
| user |`string`| - | database ID (or email address) for this user. If you don't have a userId but want to record traits, you should pass nil. For more information on how we generate the UUID and Apple's policies on IDs, see [https://segment.io/libraries/ios#ids](https://segment.io/libraries/ios#ids)|
191
193
|`Default value` traits |[JsonMap]()| {} | A dictionary of traits you know about the user. Things like: email, name, plan, etc. |
194
+
|`Default value` options |[Options]()| {} | A dictionary of options, e.g. integrations (thigh analytics integration to forward the event to) |
192
195
193
196
**Returns:**`Promise`<`void`>
194
197
@@ -237,7 +240,7 @@ ___
237
240
238
241
▸ **reset**(): `Promise`<`void`>
239
242
240
-
*Defined in [analytics.ts:273](https://github.com/segmentio/analytics-react-native/blob/master/packages/core/src/analytics.ts#L273)*
243
+
*Defined in [analytics.ts:276](https://github.com/segmentio/analytics-react-native/blob/master/packages/core/src/analytics.ts#L276)*
241
244
242
245
Reset any user state that is cached on the device.
*Defined in [analytics.ts:224](https://github.com/segmentio/analytics-react-native/blob/master/packages/core/src/analytics.ts#L224)*
258
+
*Defined in [analytics.ts:225](https://github.com/segmentio/analytics-react-native/blob/master/packages/core/src/analytics.ts#L225)*
256
259
257
260
Record the screens or views your users see.
258
261
@@ -264,6 +267,7 @@ When a user views a screen in your app, you'll want to record that here. For som
264
267
| ------ | ------ | ------ | ------ |
265
268
| name |`string`| - | The title of the screen being viewed. We recommend using human-readable names like 'Photo Feed' or 'Completed Purchase Screen'. |
266
269
|`Default value` properties |[JsonMap]()| {} | A dictionary of properties for the screen view event. If the event was 'Added to Shopping Cart', it might have properties like price, productType, etc. |
*Defined in [analytics.ts:206](https://github.com/segmentio/analytics-react-native/blob/master/packages/core/src/analytics.ts#L206)*
311
+
*Defined in [analytics.ts:207](https://github.com/segmentio/analytics-react-native/blob/master/packages/core/src/analytics.ts#L207)*
308
312
309
313
Record the actions your users perform.
310
314
@@ -316,6 +320,7 @@ When a user performs an action in your app, you'll want to track that action for
316
320
| ------ | ------ | ------ | ------ |
317
321
| event |`string`| - | The name of the event you're tracking. We recommend using human-readable names like \`Played a Song\` or \`Updated Status\`. |
318
322
|`Default value` properties |[JsonMap]()| {} | A dictionary of properties for the event. If the event was 'Added to Shopping Cart', it might have properties like price, productType, etc. |
323
+
|`Default value` options |[Options]()| {} | A dictionary of options, e.g. integrations (thigh analytics integration to forward the event to) |
0 commit comments