should the userId come from window.analytics.user().id() not options?