I entered the external js in a script tag in the head, and then that block of code at the bottom, right before the closing body tag….that’s the way they have it in their example. It didn’t work. Could it have been conflicting with something in the functions.php file? I’m not touching that. When it comes to js I only copy and paste.
I have since found a WP plugin for this behavior, but would still like to know how to deal with these non-WP plug-ins.