File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 "on" : " \" color\" : \" green\" "
99 },
1010 "sets" : [" set_a" ],
11- "defaultTreatment" : " off"
11+ "defaultTreatment" : " off" ,
12+ "trackImpressions" : true
1213}
Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ function objectToView(splitObject: ISplit | null): SplitIO.SplitView | null {
3131 treatments : collectTreatments ( splitObject ) ,
3232 configs : splitObject . configurations || { } ,
3333 sets : splitObject . sets || [ ] ,
34- defaultTreatment : splitObject . defaultTreatment
34+ defaultTreatment : splitObject . defaultTreatment ,
35+ trackImpressions : splitObject . trackImpressions !== false
3536 } ;
3637}
3738
Original file line number Diff line number Diff line change @@ -863,6 +863,10 @@ declare namespace SplitIO {
863863 * The default treatment of the feature flag.
864864 */
865865 defaultTreatment : string ;
866+ /**
867+ * Whether the feature flag has impressions tracking enabled or not.
868+ */
869+ trackImpressions : boolean ;
866870 } ;
867871 /**
868872 * A promise that resolves to a feature flag view or null if the feature flag is not found.
You can’t perform that action at this time.
0 commit comments