Hi Paul, just wanted to say thank you for that, and one small comment for anyone who's new to making these kinds of changes to Squarespace:
I'm guessing the best place to put this code is in the Page Header Code Injection (in the Advanced portion of the page settings)?