Custom template in ?

Hope someone can point me in the right direction.

i am experimenting with trying to load a datalayer for tagmanager in the head and I thought I would start with something simple and i can’t even make that work.

I am adding this to default.xml

<body>
<referenceBlock name=”head.additional”>
<block class=”Magento\Framework\View\Element\Template” name=”main.test” before=”-” template=”Magento_InventoryInStorePickupFrontend::html/test.phtml”>

</referenceBlock>
</body>

as everyone syas it will load it into the <head>

Alas, it loads it in the body

thanks

submitted by /u/lordofthethingybobs
[link] [comments]