Created
October 25, 2014 22:05
-
-
Save zaneclaes/29d3f55d08fdec0588d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static NSString * const kKeyHasAttributedReferral = @"hasAttributedReferral"; | |
- (void)attributeReferral { | |
if([[NSUserDefaults standardUserDefaults] boolForKey:kKeyHasAttributedReferral]) { | |
return; | |
} | |
// Attribute referrals | |
NSMutableDictionary *params = [NSMutableDictionary dictionary]; | |
params[@"device"] = [[UIDevice currentDevice].model componentsSeparatedByString:@" "].firstObject; | |
params[@"os_version"] = [[UIDevice currentDevice].systemVersion stringByReplacingOccurrencesOfString:@"." withString:@"_"]; | |
// Add any user-specific parameters and send it to the attribution script... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment