This is an endless challenge to the Joomla administrator – how do I insert code into an article? There are many add-on editors that can be used and there are many “specific” plugins you can install for each particular instance, but I’ve found this works regardless of your editor. Furthermore, unlike the “no editor” option, even if someone else goes in to edit that article, the code doesn’t change.
This method involves two Joomla extensions:
Install both of these through the Joomla interface. You’ll need to go to the “Plugins” menu and enable the Modules Anywhere plugin (you can also see the different syntax options). Then, navigate to the module manager and select the new “Easy Script” module. Rename it to something appropriate, such as Google Map. You’ll also need to enable the module (publish). For position, select “none”. Then, paste your script in the field on the right. Click on “Save”. After you return to the Module Manager screen, note the id number of the module you just edited (located on the right).