gtag('set', {'user_id': 'USER_ID'}); // Set the user ID using signed-in user_id. var dimensionValue = 'User ID'; ga('set', 'dimension1', dimensionValue);