added matomo tracking

pull/5370/head
lianahus 1 year ago committed by Aniket
parent c26b7be33f
commit 850229785f
  1. 3
      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)

Loading…
Cancel
Save