StatCounter code for AngularJS applications

I am trying to include the statcounter code in my AngularJS application. But when I do that, it breaks my application and prevents it from loading. I wanted to find out if you have some code explicitly for AngularJS based applications. Although I would love using Statcounter in my AngularJS web application, due to the lack of support currently, I would have to stop using it until a solution is provided for this issue.

Please let me know if you have a solution for this.

Thank you.