From 850229785f8d36a7c20650f99cfe43bd04a5ccfe Mon Sep 17 00:00:00 2001 From: lianahus Date: Fri, 22 Sep 2023 10:40:10 +0200 Subject: [PATCH] added matomo tracking --- libs/remix-ui/renderer/src/lib/renderer.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/remix-ui/renderer/src/lib/renderer.tsx b/libs/remix-ui/renderer/src/lib/renderer.tsx index 084c510517..34b956ee7f 100644 --- a/libs/remix-ui/renderer/src/lib/renderer.tsx +++ b/libs/remix-ui/renderer/src/lib/renderer.tsx @@ -2,6 +2,8 @@ import React, {useEffect, useState} from 'react' //eslint-disable-line import {CopyToClipboard} from '@remix-ui/clipboard' import {helper} from '@remix-project/remix-solidity' import './renderer.css' +const _paq = (window._paq = window._paq || []) + interface RendererProps { message: any opt?: any @@ -76,6 +78,7 @@ export const Renderer = ({message, opt = {}, plugin}: RendererProps) => { explain why the error occurred and how to fix it. ` await plugin.call('openaigpt', 'message', message) + _paq.push(['trackEvent', 'GPTSupport', 'askGPT']) } catch (err) { console.error('unable to askGtp') console.error(err)