diff --git a/workspaces/website/src/components/ProvisionsPopup/ProvisionsPopup.tsx b/workspaces/website/src/components/ProvisionsPopup/ProvisionsPopup.tsx index cb83281e34..d27cc88672 100644 --- a/workspaces/website/src/components/ProvisionsPopup/ProvisionsPopup.tsx +++ b/workspaces/website/src/components/ProvisionsPopup/ProvisionsPopup.tsx @@ -15,9 +15,7 @@ const ProvisionsPopup = () => { ); const gtmEvent = (target: string) => - window.gtag("event", target, { - event_category: "engagement", - }); + window.gtag?.("event", target, { event_category: "engagement" }); const onClose = (event: React.MouseEvent) => { event.stopPropagation();