diff --git a/public/app/features/explore/utils/links.test.ts b/public/app/features/explore/utils/links.test.ts index ef459db08b5..86f84abd7d1 100644 --- a/public/app/features/explore/utils/links.test.ts +++ b/public/app/features/explore/utils/links.test.ts @@ -315,11 +315,7 @@ describe('explore links utils', () => { links[0][0].onClick({}); } - expect(reportInteraction).toBeCalledWith('grafana_data_link_clicked', { - app: CoreApp.Explore, - internal: true, - origin: DataLinkConfigOrigin.Correlations, - }); + expect(reportInteraction).not.toBeCalled(); expect(links[1]).toHaveLength(1); expect(links[1][0].href).toBe( diff --git a/public/app/features/explore/utils/links.ts b/public/app/features/explore/utils/links.ts index 818ff1566ca..881fb025b12 100644 --- a/public/app/features/explore/utils/links.ts +++ b/public/app/features/explore/utils/links.ts @@ -195,7 +195,9 @@ export const getFieldLinksForExplore = (options: { scopedVars: allVars, range, field, - onClickFn: (options) => splitFnWithTracking(options), + // Don't track internal links without split view as they are used only in Dashboards + // TODO: It should be revisited in #66570 + onClickFn: options.splitOpenFn ? (options) => splitFnWithTracking(options) : undefined, replaceVariables: getTemplateSrv().replace.bind(getTemplateSrv()), }); return { ...internalLink, variables: variables };