The tracking code is not recognized

Hello, I have created a Symfony website. I now tried to install matomo on this. However, the inserted tracking code is not recognized.

I would like to host Matomo on a different web server than the website. Do I have to pay attention to anything specific as to why the code might not work? Or is there a general problem with symfony?