Skip to content

Commit ba4e9b9

Browse files
committed
add temp log
1 parent b61d7f7 commit ba4e9b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/features/common/components/shell/gtm/safe-gtm.component.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
import { GoogleTagManager } from "@next/third-parties/google"
44
import { useEffect, useState } from "react";
55

6-
const MAX_URL_LENGTH = 8000;
6+
const MAX_URL_LENGTH = 6000;
77

88
export function SafeGTM({ gtmId}: { gtmId: string}) {
99
const [canLoad, setCanLoad] = useState(false)
1010

1111
useEffect(() => {
1212
const urlLength = window.location.href.length
1313
const hasLargeToken = urlLength > MAX_URL_LENGTH
14+
console.log("url length", urlLength)
1415
if(hasLargeToken) {
1516
console.warn("GTM disabled: URL too long", urlLength)
1617
}

0 commit comments

Comments
 (0)