From f5d6fa0ca383fdad9cde9ac68911652bbb045a05 Mon Sep 17 00:00:00 2001 From: lianahus Date: Tue, 29 Oct 2024 10:20:52 +0100 Subject: [PATCH 01/27] matomo updates --- apps/remix-ide/src/app/components/preload.tsx | 4 ++-- .../plugin-manager/src/lib/components/ActivePluginCard.tsx | 3 +++ .../plugin-manager/src/lib/components/InactivePluginCard.tsx | 3 +++ libs/remix-ui/settings/src/lib/remix-ui-settings.tsx | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/apps/remix-ide/src/app/components/preload.tsx b/apps/remix-ide/src/app/components/preload.tsx index 18e7665e0a..2a05a283e5 100644 --- a/apps/remix-ide/src/app/components/preload.tsx +++ b/apps/remix-ide/src/app/components/preload.tsx @@ -10,7 +10,7 @@ import './styles/preload.css' import isElectron from 'is-electron' const _paq = (window._paq = window._paq || []) -_paq.push(['trackEvent', 'Preload', 'start']) +_paq.push(['trackEvent', 'App', 'Preload', 'start']) export const Preload = (props: any) => { const [tip, setTip] = useState('') @@ -40,7 +40,7 @@ export const Preload = (props: any) => { }) }) .catch((err) => { - _paq.push(['trackEvent', 'Preload', 'error', err && err.message]) + _paq.push(['trackEvent', 'App', 'PreloadError', err && err.message]) console.error('Error loading Remix:', err) setError(true) }) diff --git a/libs/remix-ui/plugin-manager/src/lib/components/ActivePluginCard.tsx b/libs/remix-ui/plugin-manager/src/lib/components/ActivePluginCard.tsx index 6241150a2e..36ee6b743c 100644 --- a/libs/remix-ui/plugin-manager/src/lib/components/ActivePluginCard.tsx +++ b/libs/remix-ui/plugin-manager/src/lib/components/ActivePluginCard.tsx @@ -3,6 +3,8 @@ import React from 'react' import { FormattedMessage } from 'react-intl' import '../remix-ui-plugin-manager.css' import { CustomTooltip } from '@remix-ui/helper' +const _paq = (window._paq = window._paq || []) + interface PluginCardProps { profile: any buttonText: string @@ -85,6 +87,7 @@ function ActivePluginCard({ profile, buttonText, deactivatePlugin }: PluginCardP > : ( : (