Amplitude integration into wix

Question:
I have done exactly what this article says, and i have followed both the outdated and the new version of this article.

I have even added the SDK right into the page code itself and still no dice. Every time i run it i get the “amplitude is not defined” error. It is behaving as though no library of functions is ever called. If i had to guess i need to place something along the lines of “import amplitude from *********” somewhere. Something like this has to be missing from the documentation. If anyone has actually successfully added amplitude to a Wix website would you please show me how?

Product:
Wix Editor

What are you trying to achieve:
Integrate Amplitude into my Wix site for event tracking.

This would be something to ask amplitude generally. However looking at their docs it seems they have an npm package that you can install and import: JavaScript SDK (Maintenance) - Amplitude Developer Center

You can install almost any npm package, including this one, by going to the code panel, selecting “Packages and app” and clicking “Install packages from npm”. After installing (and importing as per amplitude’s docs) you’ll be able to use the library.