Google Apps: Automate your workflow with Apps Scripts integration in Google Sites
When editing a site, select the ‘More actions’ drop-down menu and then ‘Manage site.’ Select the ‘Apps Scripts’ tab. Select ‘Launch Editor’ to add a new script or click on the name of the Apps Script you would like to edit.
For more information:
Help Center: Using Apps Scripts in your site