Hide javascript

I would hide all riferiments to a tracking service on my website code. There is the way to place the javascript code in a file.js (for example called “music.js” and to call it on the footer? thanks

Yes you can do that

I’ve tried to put the scriptcode in an external file .js, but doesn’t work…

can you give the exact code that i’ve to put in the footer (for call the .js) and in the .js

Thanks