Skip to content

Commit

Permalink
Add some click metrics
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Li <[email protected]>
  • Loading branch information
joshuali925 committed Dec 5, 2022
1 parent 28cd841 commit 6f0d30a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ export const Search = (props: any) => {
className={`ppl-link ${
uiSettingsService.get('theme:darkMode') ? 'ppl-link-dark' : 'ppl-link-light'
}`}
data-click-metric-element="common.search.ppl_reference"
color="hollow"
onClick={() => showFlyout()}
onClickAriaLabel={'pplLinkShowFlyout'}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ export const DocViewRow = forwardRef((props: IDocViewRowProps, ref) => {
<td className="osdDocTableCell__toggleDetails" key={uniqueId('grid-td-')}>
<EuiButtonIcon
className="euiButtonIcon euiButtonIcon--text"
data-click-metric-element="event_analytics.events_view.toggle_details"
onClick={() => {
toggleDetailOpen();
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,12 @@ export const Home = (props: IHomeProps) => {
Use Events Analytics to monitor, correlate, analyze and visualize machine
generated data through Piped Processing Language. Save frequently searched queries
and visualizations for quick access{' '}
<EuiLink external={true} href={EVENT_ANALYTICS_DOCUMENTATION_URL} target="blank">
<EuiLink
data-click-metric-element="event_analytics.learn_more"
external={true}
href={EVENT_ANALYTICS_DOCUMENTATION_URL}
target="blank"
>
Learn more
</EuiLink>
</EuiText>
Expand Down

0 comments on commit 6f0d30a

Please sign in to comment.