From da07e21a2d14255290a5d6e4fa10d4792a8f56b4 Mon Sep 17 00:00:00 2001 From: Jakub Jankiewicz Date: Thu, 5 Dec 2024 22:56:20 +0100 Subject: [PATCH] remove OWA and Piwik Pro analytics --- docs/src/components/Interpreter/index.tsx | 5 ---- docs/src/theme/Footer/Layout/index.js | 28 ----------------------- 2 files changed, 33 deletions(-) diff --git a/docs/src/components/Interpreter/index.tsx b/docs/src/components/Interpreter/index.tsx index 7cd80c8e..5bee4ea4 100644 --- a/docs/src/components/Interpreter/index.tsx +++ b/docs/src/components/Interpreter/index.tsx @@ -16,17 +16,12 @@ export interface TerminalProps extends CSSProperties { } function track(type: string, command: string) { - const _paq = globalThis._paq as PiwikTrack; - if (_paq) { - _paq.push(['trackEvent', 'REPL', type, command]); - } const umami = globalThis.umami as any; if (umami) { umami.track('REPL', { type, command }); } } -type PiwikTrack = Array>; export type JQueryTerminal = ReturnType; const replReady = () => { diff --git a/docs/src/theme/Footer/Layout/index.js b/docs/src/theme/Footer/Layout/index.js index 874e8e89..d4aeed0c 100644 --- a/docs/src/theme/Footer/Layout/index.js +++ b/docs/src/theme/Footer/Layout/index.js @@ -28,34 +28,6 @@ export default function FooterLayout({style, links, logo, copyright}) { {baseUrl === currentPath && } -