We are migrating from legacy Chat to Enhanced Messaging. Per documentation: "Paste the code before the closing body tag (</body>) on each web page where you want the messaging button to appear. Don’t place the code in your header."
The webmaster is requesting an option that doesn't require it to be placed in the body of the HTML, citing company compliance. Specifically asking: For ALL scripts loading any cookies, such as setting or collecting cookies like the Salesforce chat, we need to control those at a high level, before the page loads. We need to have the ability to turn off the chat if someone opts out of all cookie collection.
What are the options (if there are any) regarding placing the code outside the body of the HTML?