Finally updated it to work with Universal.
In Google Analytics go to the Admin tab and select Custom Definitions under your Property. Add your new Custom Dimension's, I only did a Logged-In and Guest.
View attachment 139661
Add the new code to the google_analytics template on your website like this (be sure that your dimension numbers match with the code on Google Analytics):
PHP:
ga('create', '{$xenOptions.googleAnalyticsWebPropertyId}', 'auto');
<xen:if is="{$visitor.user_id}">...