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