-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add WebView tracker integration to the React Native tracker
- Loading branch information
1 parent
d6a87a0
commit 15af8b6
Showing
20 changed files
with
741 additions
and
126 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
api-docs/docs/react-native-tracker/markdown/react-native-tracker.getalltrackers.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@snowplow/react-native-tracker](./react-native-tracker.md) > [getAllTrackers](./react-native-tracker.getalltrackers.md) | ||
|
||
## getAllTrackers() function | ||
|
||
Retrieves all initialized trackers | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare function getAllTrackers(): ReactNativeTracker[]; | ||
``` | ||
<b>Returns:</b> | ||
|
||
[ReactNativeTracker](./react-native-tracker.reactnativetracker.md)<!-- -->\[\] | ||
|
||
All initialized trackers | ||
|
25 changes: 25 additions & 0 deletions
25
...s/docs/react-native-tracker/markdown/react-native-tracker.getwebviewcallback.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@snowplow/react-native-tracker](./react-native-tracker.md) > [getWebViewCallback](./react-native-tracker.getwebviewcallback.md) | ||
|
||
## getWebViewCallback() function | ||
|
||
Enables tracking events from apps rendered in react-native-webview components. The apps need to use the Snowplow WebView tracker to track the events. | ||
|
||
To subscribe for the events, set the `onMessage` attribute: <<!-- -->WebView onMessage=<!-- -->{<!-- -->getWebViewCallback()<!-- -->} ... /<!-- -->> | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare function getWebViewCallback(): (message: { | ||
nativeEvent: { | ||
data: string; | ||
}; | ||
}) => void; | ||
``` | ||
<b>Returns:</b> | ||
|
||
(message: { nativeEvent: { data: string; }; }) => void | ||
|
||
Callback to subscribe for events from Web views tracked using the Snowplow WebView tracker. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
api-docs/docs/react-native-tracker/markdown/react-native-tracker.selfdescribing.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@snowplow/react-native-tracker](./react-native-tracker.md) > [SelfDescribing](./react-native-tracker.selfdescribing.md) | ||
|
||
## SelfDescribing type | ||
|
||
Interface for any self-describing JSON such as context entities or self-describing events | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare type SelfDescribing<T = Record<string, unknown>> = SelfDescribingJson<T>; | ||
``` |
16 changes: 0 additions & 16 deletions
16
...s/docs/react-native-tracker/markdown/react-native-tracker.selfdescribingjson.md
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...cs/react-native-tracker/markdown/react-native-tracker.structuredevent.action.md
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
.../react-native-tracker/markdown/react-native-tracker.structuredevent.category.md
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...ocs/react-native-tracker/markdown/react-native-tracker.structuredevent.label.md
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
...docs/docs/react-native-tracker/markdown/react-native-tracker.structuredevent.md
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
.../react-native-tracker/markdown/react-native-tracker.structuredevent.property.md
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...ocs/react-native-tracker/markdown/react-native-tracker.structuredevent.value.md
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
...docs/docs/react-native-tracker/markdown/react-native-tracker.structuredprops.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@snowplow/react-native-tracker](./react-native-tracker.md) > [StructuredProps](./react-native-tracker.structuredprops.md) | ||
|
||
## StructuredProps type | ||
|
||
A Structured Event A classic style of event tracking, allows for easier movement between analytics systems. A loosely typed event, creating a Self Describing event is preferred, but useful for interoperability. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare type StructuredProps = StructuredEvent; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.