Integration of Matomo with Angular 11

I want to integrate Matomo with Angular.
I have read the documentation and followed all the steps mentioned there but it doesn’t seem to work. I even tried with ngx-matomo package. But it didn’t work, attaching package link for reference. https://www.npmjs.com/package/ngx-matomo/v/1.0.0-rc.1
Maybe I’m missing something. Can anyone help me with this?