According to this answer here: https://www.facebook.com/help/community/question/?id=10200354561858276
you can place it inside the <BODY>
element but FB recommends to keep it at the beginning of <BODY>
or in the <HEAD>
as the conversion will be then counted even if the page does not load fully or the user closes the page.