Solution:
It is invalid to put script tag after body tag, but if you really want to do that, you can look into the theme’s footer.php.
For example, you may find code like this in footer.php:
<?php
</div><!-- close tag for content container -->
?>
<footer>
<!-- footer content -->
</footer>
</body>
<!-- here is the place to put your code -->
</html>