Plugin analytics

I know this questions comes up quite frequently and most of the answers point to Mixpanel. But the existing solution works with React plugins while I have the vanilla TS configuration.

Do you know of any ways to integrate analytics (doesn’t really matter which) with no bundlers, etc?