@adobe/helix-rum-enhancer 2.7.5 → 2.7.6
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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/index.js +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [2.7.6](https://github.com/adobe/helix-rum-enhancer/compare/v2.7.5...v2.7.6) (2024-05-21)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* no type leads to empty checkpoint ([#167](https://github.com/adobe/helix-rum-enhancer/issues/167)) ([c1d41ad](https://github.com/adobe/helix-rum-enhancer/commit/c1d41ad084fd9e0e71b3bea7aff54e543ee45953))
|
|
7
|
+
|
|
1
8
|
## [2.7.5](https://github.com/adobe/helix-rum-enhancer/compare/v2.7.4...v2.7.5) (2024-05-14)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -161,7 +161,7 @@ function addEnterLeaveTracking() {
|
|
|
161
161
|
// reload: same page, navigate: same origin, enter: everything else
|
|
162
162
|
if (type === 'reload' || source === window.location.href) {
|
|
163
163
|
sampleRUM('reload', payload);
|
|
164
|
-
} else if (type !== 'navigate') {
|
|
164
|
+
} else if (type && type !== 'navigate') {
|
|
165
165
|
sampleRUM(type, payload); // back, forward, prerender, etc.
|
|
166
166
|
} else if (source && window.location.origin === new URL(source).origin) {
|
|
167
167
|
sampleRUM('navigate', payload); // internal navigation
|
|
@@ -169,7 +169,6 @@ function addEnterLeaveTracking() {
|
|
|
169
169
|
sampleRUM('enter', payload); // enter site
|
|
170
170
|
}
|
|
171
171
|
};
|
|
172
|
-
navigate(document.referrer);
|
|
173
172
|
|
|
174
173
|
new PerformanceObserver((list) => list
|
|
175
174
|
.getEntries().map((entry) => navigate(document.referrer, entry.type)))
|