I need to put the following code into the <head> section of the home page:
<script type="text/javascript">
__compete_code = 'dcafd398df98a9f097d0384b52d77295';
(function () {
var s = document.createElement('script'),
e = document.getElementsByTagName('script')[0];
s.src = (document.location.protocol.toLowerCase() === 'https:' ? 'https:' : 'http:') +
'//c.compete.com/bootstrap/dcafd398df98a9f097d0384b52d77295/bootstrap.js';
s.type = 'text/javascript';
s.async = true;
if (e) { e.parentNode.insertBefore(s, e); }
}());
</script>
This was a request from a company I'm using to do Google Analytics work for me. I didn't know how to convert this into a .js file. If someone can convert this to a form that can be used in a .js file, I can take care of it. But if not, is there a way to add this to the <head> section of the home page?
Thanks.