@walkeros/web-destination-hotjar 3.4.0 → 3.4.1
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.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.js +15 -1
- package/dist/examples/index.mjs +15 -1
- package/dist/walkerOS.json +23 -9
- package/package.json +3 -3
package/dist/examples/index.js
CHANGED
|
@@ -89,7 +89,7 @@ function L(e2, t = {}, n = {}) {
|
|
|
89
89
|
}
|
|
90
90
|
function fe(e2 = {}) {
|
|
91
91
|
var _a;
|
|
92
|
-
const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = L({ name: "entity action", data: { string: "foo", number: 1, boolean: true, array: [0, "text", false], not: void 0 }, context: { dev: ["test", 1] }, globals: { lang: "elb" }, custom: { completely: "random" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n" }, nested: [{ entity: "child", data: { is: "subordinated" }, nested: [], context: { element: ["child", 0] } }], consent: { functional: true }, id: `${t}-${n}-${o}`, trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, group: n, count: o, version: { source: "3.4.
|
|
92
|
+
const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = L({ name: "entity action", data: { string: "foo", number: 1, boolean: true, array: [0, "text", false], not: void 0 }, context: { dev: ["test", 1] }, globals: { lang: "elb" }, custom: { completely: "random" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n" }, nested: [{ entity: "child", data: { is: "subordinated" }, nested: [], context: { element: ["child", 0] } }], consent: { functional: true }, id: `${t}-${n}-${o}`, trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, group: n, count: o, version: { source: "3.4.1", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, e2, { merge: false });
|
|
93
93
|
if (e2.name) {
|
|
94
94
|
const [t2, n2] = (_a = e2.name.split(" ")) != null ? _a : [];
|
|
95
95
|
t2 && n2 && (r.entity = t2, r.action = n2);
|
|
@@ -103,15 +103,20 @@ function le(e2 = "entity action", t = {}) {
|
|
|
103
103
|
|
|
104
104
|
// src/examples/step.ts
|
|
105
105
|
var defaultEventForwarding = {
|
|
106
|
+
title: "Default event",
|
|
107
|
+
description: "A walker event becomes a Hotjar.event call with the event name as the custom Hotjar event.",
|
|
106
108
|
in: le("product view", { timestamp: 1700000100 }),
|
|
107
109
|
out: [["hotjar.event", "product view"]]
|
|
108
110
|
};
|
|
109
111
|
var wildcardIgnored = {
|
|
112
|
+
public: false,
|
|
110
113
|
in: le("debug noise", { timestamp: 1700000101 }),
|
|
111
114
|
mapping: { ignore: true },
|
|
112
115
|
out: []
|
|
113
116
|
};
|
|
114
117
|
var renamedEvent = {
|
|
118
|
+
title: "Renamed event",
|
|
119
|
+
description: "A mapping renames the event so the Hotjar custom event uses a canonical name like completed_purchase.",
|
|
115
120
|
in: le("order complete", { timestamp: 1700000102 }),
|
|
116
121
|
mapping: {
|
|
117
122
|
name: "completed_purchase"
|
|
@@ -119,6 +124,8 @@ var renamedEvent = {
|
|
|
119
124
|
out: [["hotjar.event", "completed_purchase"]]
|
|
120
125
|
};
|
|
121
126
|
var userLoginIdentify = {
|
|
127
|
+
title: "User login identify",
|
|
128
|
+
description: "A user login fires Hotjar.identify with userId and attributes before firing the event.",
|
|
122
129
|
in: le("user login", {
|
|
123
130
|
timestamp: 1700000103,
|
|
124
131
|
data: { id: "u-123", email: "jane@example.com", plan: "premium" }
|
|
@@ -144,6 +151,8 @@ var userLoginIdentify = {
|
|
|
144
151
|
]
|
|
145
152
|
};
|
|
146
153
|
var destinationLevelIdentify = {
|
|
154
|
+
title: "Destination identify",
|
|
155
|
+
description: "Destination-level identify calls Hotjar.identify with the user id on every push as Hotjar recommends.",
|
|
147
156
|
in: le("page view", { timestamp: 1700000104 }),
|
|
148
157
|
settings: {
|
|
149
158
|
identify: {
|
|
@@ -158,6 +167,8 @@ var destinationLevelIdentify = {
|
|
|
158
167
|
]
|
|
159
168
|
};
|
|
160
169
|
var pageViewStateChange = {
|
|
170
|
+
title: "State change",
|
|
171
|
+
description: "An SPA navigation fires Hotjar.stateChange with the new path instead of a Hotjar custom event.",
|
|
161
172
|
in: le("page view", { timestamp: 1700000105 }),
|
|
162
173
|
mapping: {
|
|
163
174
|
skip: true,
|
|
@@ -168,6 +179,8 @@ var pageViewStateChange = {
|
|
|
168
179
|
out: [["hotjar.stateChange", "/docs/"]]
|
|
169
180
|
};
|
|
170
181
|
var combinedFeatures = {
|
|
182
|
+
title: "Combined features",
|
|
183
|
+
description: "A purchase fires Hotjar.identify then the renamed custom event in the canonical execution order.",
|
|
171
184
|
in: le("order complete", { timestamp: 1700000106 }),
|
|
172
185
|
mapping: {
|
|
173
186
|
name: "completed_purchase",
|
|
@@ -181,6 +194,7 @@ var combinedFeatures = {
|
|
|
181
194
|
]
|
|
182
195
|
};
|
|
183
196
|
var pageViewSkip = {
|
|
197
|
+
public: false,
|
|
184
198
|
in: le("page view", { timestamp: 1700000107 }),
|
|
185
199
|
mapping: {
|
|
186
200
|
skip: true
|
package/dist/examples/index.mjs
CHANGED
|
@@ -68,7 +68,7 @@ function L(e2, t = {}, n = {}) {
|
|
|
68
68
|
}
|
|
69
69
|
function fe(e2 = {}) {
|
|
70
70
|
var _a;
|
|
71
|
-
const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = L({ name: "entity action", data: { string: "foo", number: 1, boolean: true, array: [0, "text", false], not: void 0 }, context: { dev: ["test", 1] }, globals: { lang: "elb" }, custom: { completely: "random" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n" }, nested: [{ entity: "child", data: { is: "subordinated" }, nested: [], context: { element: ["child", 0] } }], consent: { functional: true }, id: `${t}-${n}-${o}`, trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, group: n, count: o, version: { source: "3.4.
|
|
71
|
+
const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = L({ name: "entity action", data: { string: "foo", number: 1, boolean: true, array: [0, "text", false], not: void 0 }, context: { dev: ["test", 1] }, globals: { lang: "elb" }, custom: { completely: "random" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n" }, nested: [{ entity: "child", data: { is: "subordinated" }, nested: [], context: { element: ["child", 0] } }], consent: { functional: true }, id: `${t}-${n}-${o}`, trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, group: n, count: o, version: { source: "3.4.1", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, e2, { merge: false });
|
|
72
72
|
if (e2.name) {
|
|
73
73
|
const [t2, n2] = (_a = e2.name.split(" ")) != null ? _a : [];
|
|
74
74
|
t2 && n2 && (r.entity = t2, r.action = n2);
|
|
@@ -82,15 +82,20 @@ function le(e2 = "entity action", t = {}) {
|
|
|
82
82
|
|
|
83
83
|
// src/examples/step.ts
|
|
84
84
|
var defaultEventForwarding = {
|
|
85
|
+
title: "Default event",
|
|
86
|
+
description: "A walker event becomes a Hotjar.event call with the event name as the custom Hotjar event.",
|
|
85
87
|
in: le("product view", { timestamp: 1700000100 }),
|
|
86
88
|
out: [["hotjar.event", "product view"]]
|
|
87
89
|
};
|
|
88
90
|
var wildcardIgnored = {
|
|
91
|
+
public: false,
|
|
89
92
|
in: le("debug noise", { timestamp: 1700000101 }),
|
|
90
93
|
mapping: { ignore: true },
|
|
91
94
|
out: []
|
|
92
95
|
};
|
|
93
96
|
var renamedEvent = {
|
|
97
|
+
title: "Renamed event",
|
|
98
|
+
description: "A mapping renames the event so the Hotjar custom event uses a canonical name like completed_purchase.",
|
|
94
99
|
in: le("order complete", { timestamp: 1700000102 }),
|
|
95
100
|
mapping: {
|
|
96
101
|
name: "completed_purchase"
|
|
@@ -98,6 +103,8 @@ var renamedEvent = {
|
|
|
98
103
|
out: [["hotjar.event", "completed_purchase"]]
|
|
99
104
|
};
|
|
100
105
|
var userLoginIdentify = {
|
|
106
|
+
title: "User login identify",
|
|
107
|
+
description: "A user login fires Hotjar.identify with userId and attributes before firing the event.",
|
|
101
108
|
in: le("user login", {
|
|
102
109
|
timestamp: 1700000103,
|
|
103
110
|
data: { id: "u-123", email: "jane@example.com", plan: "premium" }
|
|
@@ -123,6 +130,8 @@ var userLoginIdentify = {
|
|
|
123
130
|
]
|
|
124
131
|
};
|
|
125
132
|
var destinationLevelIdentify = {
|
|
133
|
+
title: "Destination identify",
|
|
134
|
+
description: "Destination-level identify calls Hotjar.identify with the user id on every push as Hotjar recommends.",
|
|
126
135
|
in: le("page view", { timestamp: 1700000104 }),
|
|
127
136
|
settings: {
|
|
128
137
|
identify: {
|
|
@@ -137,6 +146,8 @@ var destinationLevelIdentify = {
|
|
|
137
146
|
]
|
|
138
147
|
};
|
|
139
148
|
var pageViewStateChange = {
|
|
149
|
+
title: "State change",
|
|
150
|
+
description: "An SPA navigation fires Hotjar.stateChange with the new path instead of a Hotjar custom event.",
|
|
140
151
|
in: le("page view", { timestamp: 1700000105 }),
|
|
141
152
|
mapping: {
|
|
142
153
|
skip: true,
|
|
@@ -147,6 +158,8 @@ var pageViewStateChange = {
|
|
|
147
158
|
out: [["hotjar.stateChange", "/docs/"]]
|
|
148
159
|
};
|
|
149
160
|
var combinedFeatures = {
|
|
161
|
+
title: "Combined features",
|
|
162
|
+
description: "A purchase fires Hotjar.identify then the renamed custom event in the canonical execution order.",
|
|
150
163
|
in: le("order complete", { timestamp: 1700000106 }),
|
|
151
164
|
mapping: {
|
|
152
165
|
name: "completed_purchase",
|
|
@@ -160,6 +173,7 @@ var combinedFeatures = {
|
|
|
160
173
|
]
|
|
161
174
|
};
|
|
162
175
|
var pageViewSkip = {
|
|
176
|
+
public: false,
|
|
163
177
|
in: le("page view", { timestamp: 1700000107 }),
|
|
164
178
|
mapping: {
|
|
165
179
|
skip: true
|
package/dist/walkerOS.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$meta": {
|
|
3
3
|
"package": "@walkeros/web-destination-hotjar",
|
|
4
|
-
"version": "3.4.
|
|
4
|
+
"version": "3.4.1",
|
|
5
5
|
"type": "destination",
|
|
6
6
|
"platform": [
|
|
7
7
|
"web"
|
|
@@ -106,6 +106,8 @@
|
|
|
106
106
|
},
|
|
107
107
|
"step": {
|
|
108
108
|
"combinedFeatures": {
|
|
109
|
+
"title": "Combined features",
|
|
110
|
+
"description": "A purchase fires Hotjar.identify then the renamed custom event in the canonical execution order.",
|
|
109
111
|
"in": {
|
|
110
112
|
"name": "order complete",
|
|
111
113
|
"data": {
|
|
@@ -192,7 +194,7 @@
|
|
|
192
194
|
"group": "gr0up",
|
|
193
195
|
"count": 1,
|
|
194
196
|
"version": {
|
|
195
|
-
"source": "3.4.
|
|
197
|
+
"source": "3.4.1",
|
|
196
198
|
"tagging": 1
|
|
197
199
|
},
|
|
198
200
|
"source": {
|
|
@@ -224,6 +226,8 @@
|
|
|
224
226
|
]
|
|
225
227
|
},
|
|
226
228
|
"defaultEventForwarding": {
|
|
229
|
+
"title": "Default event",
|
|
230
|
+
"description": "A walker event becomes a Hotjar.event call with the event name as the custom Hotjar event.",
|
|
227
231
|
"in": {
|
|
228
232
|
"name": "product view",
|
|
229
233
|
"data": {
|
|
@@ -263,7 +267,7 @@
|
|
|
263
267
|
"group": "gr0up",
|
|
264
268
|
"count": 1,
|
|
265
269
|
"version": {
|
|
266
|
-
"source": "3.4.
|
|
270
|
+
"source": "3.4.1",
|
|
267
271
|
"tagging": 1
|
|
268
272
|
},
|
|
269
273
|
"source": {
|
|
@@ -280,6 +284,8 @@
|
|
|
280
284
|
]
|
|
281
285
|
},
|
|
282
286
|
"destinationLevelIdentify": {
|
|
287
|
+
"title": "Destination identify",
|
|
288
|
+
"description": "Destination-level identify calls Hotjar.identify with the user id on every push as Hotjar recommends.",
|
|
283
289
|
"in": {
|
|
284
290
|
"name": "page view",
|
|
285
291
|
"data": {
|
|
@@ -334,7 +340,7 @@
|
|
|
334
340
|
"group": "gr0up",
|
|
335
341
|
"count": 1,
|
|
336
342
|
"version": {
|
|
337
|
-
"source": "3.4.
|
|
343
|
+
"source": "3.4.1",
|
|
338
344
|
"tagging": 1
|
|
339
345
|
},
|
|
340
346
|
"source": {
|
|
@@ -363,6 +369,7 @@
|
|
|
363
369
|
]
|
|
364
370
|
},
|
|
365
371
|
"pageViewSkip": {
|
|
372
|
+
"public": false,
|
|
366
373
|
"in": {
|
|
367
374
|
"name": "page view",
|
|
368
375
|
"data": {
|
|
@@ -417,7 +424,7 @@
|
|
|
417
424
|
"group": "gr0up",
|
|
418
425
|
"count": 1,
|
|
419
426
|
"version": {
|
|
420
|
-
"source": "3.4.
|
|
427
|
+
"source": "3.4.1",
|
|
421
428
|
"tagging": 1
|
|
422
429
|
},
|
|
423
430
|
"source": {
|
|
@@ -432,6 +439,8 @@
|
|
|
432
439
|
"out": []
|
|
433
440
|
},
|
|
434
441
|
"pageViewStateChange": {
|
|
442
|
+
"title": "State change",
|
|
443
|
+
"description": "An SPA navigation fires Hotjar.stateChange with the new path instead of a Hotjar custom event.",
|
|
435
444
|
"in": {
|
|
436
445
|
"name": "page view",
|
|
437
446
|
"data": {
|
|
@@ -486,7 +495,7 @@
|
|
|
486
495
|
"group": "gr0up",
|
|
487
496
|
"count": 1,
|
|
488
497
|
"version": {
|
|
489
|
-
"source": "3.4.
|
|
498
|
+
"source": "3.4.1",
|
|
490
499
|
"tagging": 1
|
|
491
500
|
},
|
|
492
501
|
"source": {
|
|
@@ -509,6 +518,8 @@
|
|
|
509
518
|
]
|
|
510
519
|
},
|
|
511
520
|
"renamedEvent": {
|
|
521
|
+
"title": "Renamed event",
|
|
522
|
+
"description": "A mapping renames the event so the Hotjar custom event uses a canonical name like completed_purchase.",
|
|
512
523
|
"in": {
|
|
513
524
|
"name": "order complete",
|
|
514
525
|
"data": {
|
|
@@ -595,7 +606,7 @@
|
|
|
595
606
|
"group": "gr0up",
|
|
596
607
|
"count": 1,
|
|
597
608
|
"version": {
|
|
598
|
-
"source": "3.4.
|
|
609
|
+
"source": "3.4.1",
|
|
599
610
|
"tagging": 1
|
|
600
611
|
},
|
|
601
612
|
"source": {
|
|
@@ -615,6 +626,8 @@
|
|
|
615
626
|
]
|
|
616
627
|
},
|
|
617
628
|
"userLoginIdentify": {
|
|
629
|
+
"title": "User login identify",
|
|
630
|
+
"description": "A user login fires Hotjar.identify with userId and attributes before firing the event.",
|
|
618
631
|
"in": {
|
|
619
632
|
"name": "user login",
|
|
620
633
|
"data": {
|
|
@@ -666,7 +679,7 @@
|
|
|
666
679
|
"group": "gr0up",
|
|
667
680
|
"count": 1,
|
|
668
681
|
"version": {
|
|
669
|
-
"source": "3.4.
|
|
682
|
+
"source": "3.4.1",
|
|
670
683
|
"tagging": 1
|
|
671
684
|
},
|
|
672
685
|
"source": {
|
|
@@ -702,6 +715,7 @@
|
|
|
702
715
|
]
|
|
703
716
|
},
|
|
704
717
|
"wildcardIgnored": {
|
|
718
|
+
"public": false,
|
|
705
719
|
"in": {
|
|
706
720
|
"name": "debug noise",
|
|
707
721
|
"data": {
|
|
@@ -758,7 +772,7 @@
|
|
|
758
772
|
"group": "gr0up",
|
|
759
773
|
"count": 1,
|
|
760
774
|
"version": {
|
|
761
|
-
"source": "3.4.
|
|
775
|
+
"source": "3.4.1",
|
|
762
776
|
"tagging": 1
|
|
763
777
|
},
|
|
764
778
|
"source": {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@walkeros/web-destination-hotjar",
|
|
3
3
|
"description": "Hotjar web destination for walkerOS (session replay, heatmaps, surveys)",
|
|
4
|
-
"version": "3.4.
|
|
4
|
+
"version": "3.4.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@hotjar/browser": "^1.0.9",
|
|
41
|
-
"@walkeros/web-core": "3.4.
|
|
41
|
+
"@walkeros/web-core": "3.4.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@walkeros/collector": "3.4.
|
|
44
|
+
"@walkeros/collector": "3.4.1"
|
|
45
45
|
},
|
|
46
46
|
"repository": {
|
|
47
47
|
"url": "git+https://github.com/elbwalker/walkerOS.git",
|