bodyEndCode
The bodyEndCode tag allows you to set some code to display before the closing </body> tag.
{% bodyEndCode %}
<script>
const stuff = 'Some code here';
</script>
{% endBodyEndCode %}
This code will only be output by using the following tag in your templates.
{{ _page.bodyEndCode() }}