You can insert the above script by creating an Insert script rule. Following are the steps to do the same:
Create a new insert script rule
Give it a suitable name and description
Specify the rule condition when the rule will be applied. Here you can enter the name of the website on which you wish to integrate this script
Insert your integration script in the code body
Please make a note that you include only the javascript code excluding the script tags i.e. <script> and </script> from the integration script.