adding API <script> to html <head>

Hey team,

i am currently trying to import an API to the site using However upon calling a function from this api it says it is not defined.

for example i have added the markup to the header location using the settings>advanced>custom code> head, section.

However still am getting this issue, is this the wrong way to import a script in wix?