Skip to content

Commit

Permalink
Merge branch 'feat/ab/exp_names' of https://github.com/growingio/grow…
Browse files Browse the repository at this point in the history
…ingio-sdk-ios-autotracker into feat/ab/exp_names
  • Loading branch information
YoloMao committed Sep 10, 2024
2 parents a9c8b8a + 9079b4f commit fa6060d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Modules/ABTesting/GrowingABTesting.m
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ + (void)trackExperiment:(GrowingABTExperiment *)experiment {
kABTExpLayerId: experiment.layerId.copy,
kABTExpId: experiment.experimentId.copy,
kABTExpStrategyId: experiment.strategyId.copy,
}.mutableCopy;
}
.mutableCopy;
if (experiment.layerName && experiment.layerName.length > 0) {
attributes[kABTExpLayerName] = experiment.layerName.copy;
}
Expand All @@ -100,9 +101,8 @@ + (void)trackExperiment:(GrowingABTExperiment *)experiment {
if (experiment.strategyName && experiment.strategyName.length > 0) {
attributes[kABTExpStrategyName] = experiment.strategyName.copy;
}

[GrowingEventGenerator generateCustomEvent:kABTExpHit
attributes:attributes.copy];

[GrowingEventGenerator generateCustomEvent:kABTExpHit attributes:attributes.copy];
}

+ (void)fetchExperiment:(NSString *)layerId
Expand Down

0 comments on commit fa6060d

Please sign in to comment.