mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
FeedbackLink: Add tracking (#51251)
This commit is contained in:
parent
ead01e6e5d
commit
0d899e2635
@ -3,7 +3,7 @@ import React from 'react';
|
||||
|
||||
import { GrafanaTheme2 } from '@grafana/data';
|
||||
import { Stack } from '@grafana/experimental';
|
||||
import { config } from '@grafana/runtime';
|
||||
import { config, reportInteraction } from '@grafana/runtime';
|
||||
import { Icon, useStyles2 } from '@grafana/ui';
|
||||
|
||||
export interface Props {
|
||||
@ -25,6 +25,11 @@ export function FeedbackLink({ feedbackUrl }: Props) {
|
||||
title="This query builder is new, please let us know how we can improve it"
|
||||
target="_blank"
|
||||
rel="noreferrer noopener"
|
||||
onClick={() =>
|
||||
reportInteraction('grafana_feedback_link_clicked', {
|
||||
link: feedbackUrl,
|
||||
})
|
||||
}
|
||||
>
|
||||
<Icon name="comment-alt-message" /> Give feedback
|
||||
</a>
|
||||
|
Loading…
Reference in New Issue
Block a user