Paul,
Are you building pages for a Community or Site in Salesforce? I am pretty sure that the $Site global variables only have a value when you are viewing the Skuid pages in a Site or Community. If you are doing a ‘preview’, this won’t work since you’ll still be in Salesforce.
Thanks,
Bill