From decca1612d7cc29359c236d7407b3ef7c247d63a Mon Sep 17 00:00:00 2001 From: Wentao Kuang Date: Thu, 24 Oct 2024 15:39:48 +1300 Subject: [PATCH] Add google event logs into new features pop ups. --- packages/landing/src/components/feature.updates.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/landing/src/components/feature.updates.tsx b/packages/landing/src/components/feature.updates.tsx index a6c61e807..0db121756 100644 --- a/packages/landing/src/components/feature.updates.tsx +++ b/packages/landing/src/components/feature.updates.tsx @@ -2,7 +2,7 @@ import { clsx } from 'clsx'; import { Component, ReactNode } from 'react'; import ReactModal from 'react-modal'; -import { Config } from '../config.js'; +import { Config, GaEvent, gaEvent } from '../config.js'; type FeatureUpdatesProps = { header: string; @@ -37,6 +37,7 @@ export class FeatureUpdates extends Component { this.setState({ showModal: false }); window.localStorage.setItem(this.props.id, this.props.dismissedKey); + gaEvent(GaEvent.Ui, `news:${this.props.id.toLowerCase()}:close`); }; override render(): ReactNode { @@ -46,6 +47,7 @@ export class FeatureUpdates extends Component