NewRelic browser agent not logging anything in my Angular app

I placed the browser javascript snippet in the head tag right below the meta tag.

But it has not logged anything on the NewRelic UI for the last 1 hour.

We are getting the following error on the console: Uncaught SyntaxError: Invalid or unexpected token (Screenshot attached)

enter image description here

We copied and pasted the same code as given by the NewRelic UI at the time of setting up the app. I cleared the browser’s DNS cache as well, but it still has the same issue.

enter image description here