diff --git a/src/detector.ts b/src/detector.ts index 7342534..9578942 100644 --- a/src/detector.ts +++ b/src/detector.ts @@ -208,7 +208,7 @@ function getPage(): string { const hash = location.hash; // This is to support HashRouter from either ReactRouter or VueRouter. if (hash[1] === "/") return hash; - return location.pathname; + return `${location.pathname}${location.search}`; } function getEvent(type: EventType, node: HTMLElement): ProductEvent {