added matomo for pin panel right/left

pull/5279/head
lianahus 1 month ago committed by Aniket
parent f720cb62b2
commit dd5b643167
  1. 3
      libs/remix-ui/panel/src/lib/plugins/panel-header.tsx

@ -3,6 +3,7 @@ import { FormattedMessage } from 'react-intl'
import { PluginRecord } from '../types'
import './panel.css'
import { CustomTooltip, RenderIf, RenderIfNot } from '@remix-ui/helper'
const _paq = (window._paq = window._paq || [])
export interface RemixPanelProps {
plugins: Record<string, PluginRecord>,
@ -29,10 +30,12 @@ const RemixUIPanelHeader = (props: RemixPanelProps) => {
const pinPlugin = () => {
props.pinView && props.pinView(plugin.profile, plugin.view)
_paq.push(['trackEvent', 'PluginPanel', 'pinToRight', plugin.profile.name])
}
const unPinPlugin = () => {
props.unPinView && props.unPinView(plugin.profile)
_paq.push(['trackEvent', 'PluginPanel', 'pinToLeft', plugin.profile.name])
}
const tooltipChild = <i className={`px-1 ml-2 pt-1 pb-2 ${!toggleExpander ? 'fas fa-angle-right' : 'fas fa-angle-down bg-light'}`} aria-hidden="true"></i>

Loading…
Cancel
Save