How to add arbitrary HTML to head of every page in Magento 2
To add arbitrary HTML to <head> of every page in Magento 2 add code to the head as follows:

1 2 3 4 5 |
<body> <referenceBlock name="head.additional"> <block type="Pulsestorm\Test\Block\Head" name="pulsestorm.head" as="pulsestorm.head" template="pulsestorm/head.phtml"/> </referenceBlock> </body> |
Source (
