Skip to content

Commit 1f9cffc

Browse files
committed
Prepare for v0.3.0 release
1 parent 594e7a2 commit 1f9cffc

File tree

3 files changed

+28
-28
lines changed

3 files changed

+28
-28
lines changed

CHANGELOG

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.3.0
2+
3+
* Integrate with new mobile interfaces (#19)
4+
15
# 0.2.1
26

37
* Fix module resolution for first and third-party dependencies using require and import (#15)

README.md

+23-27
Original file line numberDiff line numberDiff line change
@@ -77,36 +77,32 @@ You may download the `sp.js` file from the Releases section Github, self-host it
7777
To track events, simply call their corresponding functions given the event data:
7878

7979
```javascript
80-
trackWebViewEvent({
81-
properties: {
82-
eventName: 'ue',
83-
trackerVersion: 'webview',
84-
},
80+
trackSelfDescribingEvent({
8581
event: {
86-
schema:
87-
'iglu:com.snowplowanalytics.snowplow/button_click/jsonschema/1-0-0',
88-
data: {
89-
label: 'webview test',
90-
},
91-
},
92-
});
82+
schema: 'iglu:com.example_company/save_game/jsonschema/1-0-2',
83+
data: {
84+
'saveId': '4321',
85+
'level': 23,
86+
'difficultyLevel': 'HARD',
87+
'dlContent': true
88+
}
89+
}
90+
});
9391
```
9492

9593
In case you loaded the tracker using the Snowplow tag, you will be able to access the APIs using `window.snowplow`:
9694

9795
```javascript
98-
window.snowplow('trackWebViewEvent', {
99-
properties: {
100-
eventName: 'ue',
101-
trackerVersion: 'webview',
102-
},
96+
window.snowplow('trackSelfDescribingEvent', {
10397
event: {
104-
schema:
105-
'iglu:com.snowplowanalytics.snowplow/button_click/jsonschema/1-0-0',
106-
data: {
107-
label: 'webview test',
108-
},
109-
},
98+
schema: 'iglu:com.example_company/save_game/jsonschema/1-0-2',
99+
data: {
100+
'saveId': '4321',
101+
'level': 23,
102+
'difficultyLevel': 'HARD',
103+
'dlContent': true
104+
}
105+
}
110106
});
111107
```
112108

@@ -142,12 +138,12 @@ limitations under the License.
142138
[website]: https://snowplow.io
143139
[snowplow]: https://github.com/snowplow/snowplow
144140
[docs]: https://docs.snowplow.io/
145-
[webview-docs]: https://docs.snowplow.io/docs/collecting-data/collecting-from-own-applications/webview-tracker/
146-
[mobile-tracker-setup-docs]: https://docs.snowplow.io/docs/collecting-data/collecting-from-own-applications/mobile-trackers/installation-and-set-up/
141+
[webview-docs]: https://docs.snowplow.io/docs/sources/trackers/webview-tracker/
142+
[mobile-tracker-setup-docs]: https://docs.snowplow.io/docs/sources/trackers/mobile-trackers/installation-and-set-up/
147143

148-
[ios-tracker]: https://github.com/snowplow/snowplow-objc-tracker
144+
[ios-tracker]: https:///github.com/snowplow/snowplow-ios-tracker
149145
[android-tracker]: https://github.com/snowplow/snowplow-android-tracker
150-
[react-native-tracker]: https://docs.snowplow.io/docs/collecting-data/collecting-from-own-applications/react-native-tracker/
146+
[react-native-tracker]: https://github.com/snowplow/snowplow-javascript-tracker
151147

152148
[gh-actions]: https://github.com/snowplow-incubator/snowplow-webview-tracker/actions/workflows/build.yml
153149
[gh-actions-image]: https://github.com/snowplow-incubator/snowplow-webview-tracker/actions/workflows/build.yml/badge.svg

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@snowplow/webview-tracker",
3-
"version": "0.2.1",
3+
"version": "0.3.0",
44
"description": "WebView tracker for Snowplow",
55
"license": "Apache-2.0",
66
"repository": {

0 commit comments

Comments
 (0)