Problem with opt out code in WordPress

Hi all,

the Matomo opt-out code can be inserted as HTML in WordPress, but saving it does not work.

<div id="matomo-opt-out"></div>
<script src="https://xx.xxxxxxxxxxx.de/index.php?module=CoreAdminHome&action=optOutJS&divId=matomo-opt-out&language=auto&showIntro=1"></script>

What is the reason for this?

If I use the other option (own code for the opt out) everything works fine.