Skip to content

Commit 306d0a8

Browse files
committed
Another try
1 parent 4481b9a commit 306d0a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/optimizely.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,8 @@ def send_impression(config, experiment, variation_key, flag_key, rule_key, enabl
12801280
}
12811281
metadata[:cmab_uuid] = cmab_uuid unless cmab_uuid.nil?
12821282

1283-
user_event = UserEventFactory.create_impression_event(config, experiment, variation_id, metadata, user_id, attributes)
1283+
event_attributes = rule_type == Optimizely::DecisionService::DECISION_SOURCES['HOLDOUT'] ? nil : attributes
1284+
user_event = UserEventFactory.create_impression_event(config, experiment, variation_id, metadata, user_id, event_attributes)
12841285
@event_processor.process(user_event)
12851286
return unless @notification_center.notification_count(NotificationCenter::NOTIFICATION_TYPES[:ACTIVATE]).positive?
12861287

0 commit comments

Comments
 (0)