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.
Maybe I’m missing something. Can anyone help me with this?