u can use externel javascript file to use on your php and say like this on the php, echo "<script type='text/javascript' src='javascript.js'></script>"; PHP:
or you can use like this. <script type="text/javascript"> _uff = 0; _udn = "www.examplesite.com"; _uacct = "Example Script"; urchinTracker(); </script>
JavaScript and PHP may each bring great potential to any Web development effort, but they don't always play nice together....