I have a single Google Script that I have developed, yet it is a single script that should be placed on several Google Sites pages, I would like to be able to know using the script which website has loaded my script.
How can the script identify which page has loaded it?
On a web app inserted as gadget on Google Sites, to get the name of the site we could use getActiveSite() to get the Site object representing the active site and then getName(), something like the following:
var mySite = SiteApp.getActiveSite();
var mySiteName = mySite.getName();