@aranova/tracking-react 0.16.0 → 0.16.2
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/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1897,6 +1897,7 @@ function attachFormStart(client, config) {
|
|
|
1897
1897
|
}
|
|
1898
1898
|
|
|
1899
1899
|
// ../tracking-core/src/triggers/page-exit.ts
|
|
1900
|
+
var MIN_SEGMENT_MS = 50;
|
|
1900
1901
|
function attachPageExit(client) {
|
|
1901
1902
|
if (typeof window === "undefined" || typeof document === "undefined") {
|
|
1902
1903
|
return () => {
|
|
@@ -1934,7 +1935,7 @@ function attachPageExit(client) {
|
|
|
1934
1935
|
}
|
|
1935
1936
|
function emitSegment(path, flush) {
|
|
1936
1937
|
const dwell = settledDwellMs();
|
|
1937
|
-
if (dwell
|
|
1938
|
+
if (dwell < MIN_SEGMENT_MS) return;
|
|
1938
1939
|
client.trackEvent({
|
|
1939
1940
|
eventType: "page_exit",
|
|
1940
1941
|
metadata: {
|
|
@@ -1949,7 +1950,7 @@ function attachPageExit(client) {
|
|
|
1949
1950
|
client.flushBeacon();
|
|
1950
1951
|
}
|
|
1951
1952
|
accumulatedMs = 0;
|
|
1952
|
-
activeSince =
|
|
1953
|
+
activeSince = null;
|
|
1953
1954
|
}
|
|
1954
1955
|
function onNavigate() {
|
|
1955
1956
|
const newPath = window.location.pathname;
|
|
@@ -2737,7 +2738,7 @@ function GoogleAdsTracking(props) {
|
|
|
2737
2738
|
import { createContext as createContext2, useContext as useContext2, useEffect as useEffect5, useMemo as useMemo4 } from "react";
|
|
2738
2739
|
|
|
2739
2740
|
// package.json
|
|
2740
|
-
var version = "0.16.
|
|
2741
|
+
var version = "0.16.2";
|
|
2741
2742
|
|
|
2742
2743
|
// ../tracking-core/src/phone-react.tsx
|
|
2743
2744
|
import {
|