How to connect a script

I have a script that should be inserted into the page. When I run it for execution. Framework removes external source

<script type="text/javascript">
  (function(d, w, s) {
	var widgetHash = 'audmkmsyqvk63nn2w6lb', gcw = d.createElement(s); gcw.type = 'text/javascript'; gcw.async = true;
	gcw.src = '//'+ widgetHash +'.js';
	var sn = d.getElementsByTagName(s)[0]; sn.parentNode.insertBefore(gcw, sn);
  })(document, window, 'script');

After running and viewing the code on the page

script type="text/javascript">
	(function(d, w, s){
		var widgetHash='audmkmsyqvk63nn2w6lb', gcw=d.createElement(s);gcw.type='text/javascript';gcw.async=true;
		gcw.src=' var sn=d.getElementsByTagName(s)[0];sn.parentNode.insertBefore(gcw, sn);
		})(document, window, 'script');</script> 

Hi AndreyD, check this: Displaying Data: Working with Client Scripts | The Definitive Guide to Yii 2.0 | Yii PHP Framework