Need to add a dynamic url generated script tag from code and add them into head part of whole website. Please help me how to do that into magento2.