I'm using magento 2 , and I would need to add some content before the body closing tag , on every page. What's the most correct way to do that ?
Magento 2 – Add Content Before Body Closing Tag on Every Page
magento2page
magento2page
I'm using magento 2 , and I would need to add some content before the body closing tag , on every page. What's the most correct way to do that ?
Best Answer
You can use
before.body.end
as the reference name and add the block using layout/default xmlHere is an example: Magento 2 add script before closing body tag
Look at KAndy's answer.