diff --git a/lib/optimizely/decision_service.rb b/lib/optimizely/decision_service.rb index 4fa5f189..89a1cdc0 100644 --- a/lib/optimizely/decision_service.rb +++ b/lib/optimizely/decision_service.rb @@ -63,7 +63,7 @@ def get_variation(project_config, experiment_id, user_context, user_profile_trac # # Returns variation ID where visitor will be bucketed # (nil if experiment is inactive or user does not meet audience conditions) - user_profile_tracker = nil unless user_profile_tracker.is_a?(Optimizely::UserProfileTracker) + user_profile_tracker = UserProfileTracker.new(user_context.user_id, @user_profile_service, @logger) unless user_profile_tracker.is_a?(Optimizely::UserProfileTracker) decide_reasons = [] decide_reasons.push(*reasons) user_id = user_context.user_id