added matomo for play

pull/5304/head
lianahus 1 month ago committed by yann300
parent 5b99185aec
commit 24a8040ce8
  1. 6
      apps/remix-ide/src/app/plugins/remixGuide.tsx

@ -135,9 +135,13 @@ export class RemixGuidePlugin extends ViewPlugin {
this.showVideo = true this.showVideo = true
this.videoID = cell.expandViewElement.videoID this.videoID = cell.expandViewElement.videoID
this.renderComponent() this.renderComponent()
_paq.push(['trackEvent', 'remixGuide', 'playGuide', cell.title])
}} }}
> >
<img src={"//img.youtube.com/vi/" + cell.expandViewElement.videoID + "/0.jpg"} style={{ height: '100px', width: 'fit-content' }}></img> <img
src={"//img.youtube.com/vi/" + cell.expandViewElement.videoID + "/0.jpg"}
style={{ height: '100px', width: 'fit-content', cursor: 'pointer' }}
></img>
</RemixUIGridCell> </RemixUIGridCell>
})} })}
</RemixUIGridSection> </RemixUIGridSection>

Loading…
Cancel
Save