I'm trying to get a block to embed on all pages. I've tried many references containers including footer
, page.top
and page.wrapper
. The only one I've managed to get to include correctly on the thankyou (order success)
page in footer
.
Even using footer
the embed does not seem to happen on category or CMS pages. I'm using the default Magento 2 theme and test data.
My default.xml
is as follows:
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head> </head>
<body>
<referenceContainer name="footer">
<block class="Company\Module\Block\Module" name="company_module" template="Company_Module::tracking.phtml" />
</referenceContainer>
</body>
</page>
Any ideas appreciated.