if you want to use an external JS file in a module/template I recommend you to use the require_js function.
How to get the asset path of your js file:
copy/paste the URL(if it has one) into the require_js function and place this snippet into the header/footer (where it should be placed) // most likely the easiest solution
create a new js file in the design-manager and paste the whole js code into it - save it - right-click on the file and select “copy path” - place it into the require_js function // great if you wnat to modify the file; HubSpot will automaticly minify the file if it’s not minified
create a new js file locally and upload it to the file-manager(not design-manager) copy the path and place it the require_js function // it’s okay but not really recommended since HubSpot won’t minify it
There is another option but since this is quite “the worst way possible” I won’t tell you