Tag Manager could be used to insert script tags. Google Analytics global site uses a data layer similar to Tag Manager. Could Global Site Tag be used to insert script tags.