Carnegie Mellon University

CMU Web

Marketing & Communications with Computing Services

Add Site-wide Scripts

To add a custom script to every page (e.g., Google Analytics) in your CMS site, follow the steps below.

  1. Select the _blocks folder then select New > Block (menu bar).
  2. Select the Text option and Submit.
  3. Enter a relevant name for System Name.
  4. Paste the custom script/code into the Text area and Submit.
  5. Select setup in the asset tree and Edit
  6. Select Yes for Additional Code.
  7. Browse to the _blocks folder and select the block you created. 
  8. Select the location based on the code (e.g., <head> tag) and Submit.
  9. Publish the entire site.
    Note: A site-wide publish should be completed before 9am, after 5pm or during the weekend.