Skip to content

Commit

Permalink
Added code based experiments
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathannorris committed Feb 6, 2014
1 parent b0decc3 commit e438bb3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Taplytics.framework/Versions/A/Headers/Taplytics.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,28 @@ typedef void(^TLExperimentBlock)(NSDictionary *variables);

+ (void)startTaplyticsAPIKey:(NSString*)apiKey options:(NSDictionary*)options;

/**
Run code experiment with experiment defined by experimentName, one baseline block or variation block will be run synchronously.
If no experiment has been defined the baseline block will be called. variation blocks are defined in a NSDictionary
with a key of the variation name, and a value of TLExperimentBlock. For Example:
[Taplytics runCodeExperiment:@"testExperiment" withBaseline:^(NSDictionary *variables) {
} variations:@{@"variation1": ^(NSDictionary *variables) {
}, @"variation2": ^(NSDictionary *variables) {
}}];
*/
+ (void)runCodeExperiment:(NSString*)experimentName withBaseline:(TLExperimentBlock)baselineBlock variations:(NSDictionary*)variationNamesAndBlocks;

/**
Report that an experiment goal has been achieved, optionally pass number value to track goal such as purchase revenue.
*/
+ (void)goalAchieved:(NSString*)goalName;

+ (void)goalAchieved:(NSString*)goalName value:(NSNumber*)value;

/**
Updates Taplytics experiment properties in a background fetch, only avaliable in iOS 7
@param completionBlock completion block called when fetch is complete
Expand Down
Binary file modified Taplytics.framework/Versions/A/Taplytics
Binary file not shown.

0 comments on commit e438bb3

Please sign in to comment.