File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -122,11 +122,6 @@ export default class RoktManager {
122122 }
123123
124124 public selectPlacements ( options : IRoktSelectPlacementsOptions ) : Promise < IRoktSelection > {
125- if ( this . experimentAllocation ) {
126- options . attributes [ 'rokt.experimentid' ] = this . experimentAllocation . experimentId ;
127- options . attributes [ 'rokt.bucketid' ] = this . experimentAllocation . bucketId ;
128- options . attributes [ 'rokt.userid' ] = this . experimentAllocation . userId ;
129- }
130125
131126 if ( ! this . isReady ( ) ) {
132127 this . queueMessage ( {
@@ -143,6 +138,12 @@ export default class RoktManager {
143138
144139 this . setUserAttributes ( mappedAttributes ) ;
145140
141+ if ( this . experimentAllocation ) {
142+ mappedAttributes [ 'rokt.experimentid' ] = this . experimentAllocation . experimentId ;
143+ mappedAttributes [ 'rokt.bucketid' ] = this . experimentAllocation . bucketId ;
144+ mappedAttributes [ 'rokt.userid' ] = this . experimentAllocation . userId ;
145+ }
146+
146147 const enrichedAttributes = {
147148 ...mappedAttributes ,
148149 ...( sandboxValue !== null ? { sandbox : sandboxValue } : { } ) ,
You can’t perform that action at this time.
0 commit comments