Code added with global settings or page settings is not loaded in the editor but it will load in the live app. Probably this is the reason your link it’s not working.
If you want it to load in the editor you can try inserting the script into an html element and see if it works, see here as well.