@walkeros/web-destination-plausible 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dev.d.mts +14 -32
- package/dist/dev.d.ts +14 -32
- package/dist/dev.js +1 -1
- package/dist/dev.js.map +1 -1
- package/dist/dev.mjs +1 -1
- package/dist/dev.mjs.map +1 -1
- package/dist/examples/index.d.mts +8 -27
- package/dist/examples/index.d.ts +8 -27
- package/dist/examples/index.js +66 -75
- package/dist/examples/index.mjs +65 -73
- package/dist/index.browser.js +1 -1
- package/dist/index.es5.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/walkerOS.json +201 -50
- package/package.json +3 -3
package/dist/walkerOS.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$meta": {
|
|
3
3
|
"package": "@walkeros/web-destination-plausible",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.1",
|
|
5
5
|
"type": "destination",
|
|
6
6
|
"platform": "web"
|
|
7
7
|
},
|
|
@@ -64,68 +64,219 @@
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
|
-
"
|
|
67
|
+
"step": {
|
|
68
68
|
"customEvent": {
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
69
|
+
"in": {
|
|
70
|
+
"name": "entity action",
|
|
71
|
+
"data": {
|
|
72
|
+
"string": "foo",
|
|
73
|
+
"number": 1,
|
|
74
|
+
"boolean": true,
|
|
75
|
+
"array": [
|
|
76
|
+
0,
|
|
77
|
+
"text",
|
|
78
|
+
false
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
"context": {
|
|
82
|
+
"dev": [
|
|
83
|
+
"test",
|
|
84
|
+
1
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
"globals": {
|
|
88
|
+
"lang": "elb"
|
|
89
|
+
},
|
|
90
|
+
"custom": {
|
|
91
|
+
"completely": "random"
|
|
92
|
+
},
|
|
93
|
+
"user": {
|
|
94
|
+
"id": "us3r",
|
|
95
|
+
"device": "c00k13",
|
|
96
|
+
"session": "s3ss10n"
|
|
97
|
+
},
|
|
98
|
+
"nested": [
|
|
99
|
+
{
|
|
100
|
+
"entity": "child",
|
|
101
|
+
"data": {
|
|
102
|
+
"is": "subordinated"
|
|
103
|
+
},
|
|
104
|
+
"nested": [],
|
|
105
|
+
"context": {
|
|
106
|
+
"element": [
|
|
107
|
+
"child",
|
|
108
|
+
0
|
|
109
|
+
]
|
|
84
110
|
}
|
|
85
111
|
}
|
|
112
|
+
],
|
|
113
|
+
"consent": {
|
|
114
|
+
"functional": true
|
|
115
|
+
},
|
|
116
|
+
"id": "1700000201-gr0up-1",
|
|
117
|
+
"trigger": "test",
|
|
118
|
+
"entity": "entity",
|
|
119
|
+
"action": "action",
|
|
120
|
+
"timestamp": 1700000201,
|
|
121
|
+
"timing": 3.14,
|
|
122
|
+
"group": "gr0up",
|
|
123
|
+
"count": 1,
|
|
124
|
+
"version": {
|
|
125
|
+
"source": "2.0.1",
|
|
126
|
+
"tagging": 1
|
|
127
|
+
},
|
|
128
|
+
"source": {
|
|
129
|
+
"type": "web",
|
|
130
|
+
"id": "https://localhost:80",
|
|
131
|
+
"previous_id": "http://remotehost:9001"
|
|
86
132
|
}
|
|
87
133
|
},
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
|
|
94
|
-
"map": {
|
|
95
|
-
"currency": {
|
|
96
|
-
"value": "EUR"
|
|
97
|
-
},
|
|
98
|
-
"amount": "data.total"
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
134
|
+
"mapping": {
|
|
135
|
+
"name": "Custom Event",
|
|
136
|
+
"data": {
|
|
137
|
+
"map": {
|
|
138
|
+
"props": "data",
|
|
139
|
+
"revenue": "data.number"
|
|
102
140
|
}
|
|
103
141
|
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
142
|
+
},
|
|
143
|
+
"out": [
|
|
144
|
+
"Custom Event",
|
|
145
|
+
{
|
|
146
|
+
"props": {
|
|
147
|
+
"string": "foo",
|
|
148
|
+
"number": 1,
|
|
149
|
+
"boolean": true,
|
|
150
|
+
"array": [
|
|
151
|
+
0,
|
|
152
|
+
"text",
|
|
153
|
+
false
|
|
154
|
+
]
|
|
155
|
+
},
|
|
156
|
+
"revenue": 1
|
|
112
157
|
}
|
|
113
|
-
|
|
158
|
+
]
|
|
114
159
|
},
|
|
115
160
|
"purchase": {
|
|
116
|
-
"
|
|
117
|
-
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
161
|
+
"in": {
|
|
162
|
+
"name": "order complete",
|
|
163
|
+
"data": {
|
|
164
|
+
"id": "0rd3r1d",
|
|
165
|
+
"currency": "EUR",
|
|
166
|
+
"shipping": 5.22,
|
|
167
|
+
"taxes": 73.76,
|
|
168
|
+
"total": 555
|
|
169
|
+
},
|
|
170
|
+
"context": {
|
|
171
|
+
"shopping": [
|
|
172
|
+
"complete",
|
|
173
|
+
0
|
|
174
|
+
]
|
|
175
|
+
},
|
|
176
|
+
"globals": {
|
|
177
|
+
"pagegroup": "shop"
|
|
178
|
+
},
|
|
179
|
+
"custom": {
|
|
180
|
+
"completely": "random"
|
|
181
|
+
},
|
|
182
|
+
"user": {
|
|
183
|
+
"id": "us3r",
|
|
184
|
+
"device": "c00k13",
|
|
185
|
+
"session": "s3ss10n"
|
|
186
|
+
},
|
|
187
|
+
"nested": [
|
|
188
|
+
{
|
|
189
|
+
"entity": "product",
|
|
190
|
+
"data": {
|
|
191
|
+
"id": "ers",
|
|
192
|
+
"name": "Everyday Ruck Snack",
|
|
193
|
+
"color": "black",
|
|
194
|
+
"size": "l",
|
|
195
|
+
"price": 420
|
|
196
|
+
},
|
|
197
|
+
"context": {
|
|
198
|
+
"shopping": [
|
|
199
|
+
"complete",
|
|
200
|
+
0
|
|
201
|
+
]
|
|
202
|
+
},
|
|
203
|
+
"nested": []
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"entity": "product",
|
|
207
|
+
"data": {
|
|
208
|
+
"id": "cc",
|
|
209
|
+
"name": "Cool Cap",
|
|
210
|
+
"size": "one size",
|
|
211
|
+
"price": 42
|
|
212
|
+
},
|
|
213
|
+
"context": {
|
|
214
|
+
"shopping": [
|
|
215
|
+
"complete",
|
|
216
|
+
0
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
"nested": []
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"entity": "gift",
|
|
223
|
+
"data": {
|
|
224
|
+
"name": "Surprise"
|
|
225
|
+
},
|
|
226
|
+
"context": {
|
|
227
|
+
"shopping": [
|
|
228
|
+
"complete",
|
|
229
|
+
0
|
|
230
|
+
]
|
|
231
|
+
},
|
|
232
|
+
"nested": []
|
|
233
|
+
}
|
|
234
|
+
],
|
|
235
|
+
"consent": {
|
|
236
|
+
"functional": true
|
|
237
|
+
},
|
|
238
|
+
"id": "1700000200-gr0up-1",
|
|
239
|
+
"trigger": "load",
|
|
240
|
+
"entity": "order",
|
|
241
|
+
"action": "complete",
|
|
242
|
+
"timestamp": 1700000200,
|
|
243
|
+
"timing": 3.14,
|
|
244
|
+
"group": "gr0up",
|
|
245
|
+
"count": 1,
|
|
246
|
+
"version": {
|
|
247
|
+
"source": "2.0.1",
|
|
248
|
+
"tagging": 1
|
|
249
|
+
},
|
|
250
|
+
"source": {
|
|
251
|
+
"type": "web",
|
|
252
|
+
"id": "https://localhost:80",
|
|
253
|
+
"previous_id": "http://remotehost:9001"
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
"mapping": {
|
|
257
|
+
"name": "purchase",
|
|
258
|
+
"data": {
|
|
259
|
+
"map": {
|
|
260
|
+
"revenue": {
|
|
261
|
+
"map": {
|
|
262
|
+
"currency": {
|
|
263
|
+
"value": "EUR"
|
|
264
|
+
},
|
|
265
|
+
"amount": "data.total"
|
|
266
|
+
}
|
|
125
267
|
}
|
|
126
268
|
}
|
|
127
269
|
}
|
|
128
|
-
}
|
|
270
|
+
},
|
|
271
|
+
"out": [
|
|
272
|
+
"purchase",
|
|
273
|
+
{
|
|
274
|
+
"revenue": {
|
|
275
|
+
"currency": "EUR",
|
|
276
|
+
"amount": 555
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
]
|
|
129
280
|
}
|
|
130
281
|
}
|
|
131
282
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@walkeros/web-destination-plausible",
|
|
3
3
|
"description": "Plausible web destination for walkerOS",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.1.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"update": "npx npm-check-updates -u && npm update"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@walkeros/web-core": "^2.
|
|
39
|
+
"@walkeros/web-core": "^2.1.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@walkeros/collector": "^2.
|
|
42
|
+
"@walkeros/collector": "^2.1.0"
|
|
43
43
|
},
|
|
44
44
|
"repository": {
|
|
45
45
|
"url": "git+https://github.com/elbwalker/walkerOS.git",
|