File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
theme/DocItem/TOC/Desktop Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ export const galaxyOnPage = (prefix, depsArray = []) => {
86
86
galaxyOnFocus ( `${ prefix } .window.focus` , depsArray ) ;
87
87
} ;
88
88
89
+ // Pass String with convention 'namespace.component.eventName'
89
90
export const galaxyOnClick = ( event ) => {
90
91
return ( ) => {
91
92
window . galaxy . track ( event , { interaction : "click" } ) ;
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import clsx from "clsx";
6
6
import IconClose from '@theme/Icon/Close' ;
7
7
import styles from './styles.module.scss'
8
8
import Feedback from '../../../../components/Feedback' ;
9
+ import { galaxyOnClick } from "../../../../lib/galaxy/galaxy" ;
9
10
10
11
const AD_DATA_ENDPOINT = 'https://cms.clickhouse-dev.com:1337/api/docs-ad'
11
12
@@ -96,6 +97,7 @@ export default function DocItemTOCDesktop() {
96
97
className = { styles . docCloudClose }
97
98
onClick = { ( ) => {
98
99
setClosed ( true )
100
+ galaxyOnClick ( 'docs.sidebarCloudAdvert.buttonClick' )
99
101
window . sessionStorage . setItem ( 'doc-cloud-card-banner' , 'closed' ) ;
100
102
} } >
101
103
< IconClose color = "var(--ifm-color-emphasis-600)" width = { 10 } height = { 10 } />
You can’t perform that action at this time.
0 commit comments