diff --git a/src/components/Gam.tsx b/src/components/Gam.tsx index 1624fcd3..1920903c 100644 --- a/src/components/Gam.tsx +++ b/src/components/Gam.tsx @@ -37,16 +37,71 @@ declare global { export function GamOnPageChange() { if (typeof window === 'undefined' || !window.fusetag) return - window.fusetag.que.push(function () { - window.fusetag.pageInit() - }) + try { + window.fusetag.que.push(function () { + try { + window.fusetag.pageInit() + } catch (error) { + // Suppress cross-origin errors from Publift Fuse ad viewability measurement + // These can occur on iOS Safari due to strict Same-Origin Policy enforcement + console.debug('Error during fusetag.pageInit():', error) + } + }) + } catch (error) { + // Suppress cross-origin errors from Publift Fuse ad viewability measurement + console.debug('Error calling fusetag.que.push():', error) + } } export const GamScripts = () => ( <> +