talhah-dev if you feel like developing it yourself, you could take the google/matomo extensions as examples and create your own extension.
Most tracking codes also work by simply dropping them in the Custom Footer HTML. It just won't track page changes in the single page app.