daily pastebin goal
28%
SHARE
TWEET

Untitled

a guest Mar 21st, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Refer a Friend
  2. + (void)openedReferAFriend
  3. {
  4.     NSString *countryCode = [User current].country.code;
  5.     NSMutableDictionary *parameters = [NSMutableDictionary dictionary];
  6.     [parameters setValue:countryCode forKey:@"Country Code"];
  7.     [self parameters:parameters intercomAndLocalyticsEvent:@"Opened Refer A Friend"];
  8.     [LocalyticsUtility tagOpenScreen:@"Refer A Friend"];
  9. }
  10.  
  11. + (void)closedReferAFriend
  12. {
  13.     NSString *countryCode = [User current].country.code;
  14.     NSMutableDictionary *parameters = [NSMutableDictionary dictionary];
  15.     [parameters setValue:countryCode forKey:@"Country Code"];
  16.     [self parameters:parameters intercomAndLocalyticsEvent:@"Closed Refer A Friend"];
  17. }
  18.  
  19. + (void)copiedReferAFriendCode:(NSString *)code
  20. {
  21.     NSString *countryCode = [User current].country.code;
  22.     NSMutableDictionary *parameters = [NSMutableDictionary dictionary];
  23.     [parameters setValue:countryCode forKey:@"Country Code"];
  24.     [parameters setValue:code forKey:@"Refer Code"];
  25.     [self parameters:parameters intercomAndLocalyticsEvent:@"Refer A Friend Code Copied"];
  26. }
  27.  
  28. + (void)tappedShareReferAFriendCode:(NSString *)code
  29. {
  30.     NSString *countryCode = [User current].country.code;
  31.     NSMutableDictionary *parameters = [NSMutableDictionary dictionary];
  32.     [parameters setValue:countryCode forKey:@"Country Code"];
  33.     [parameters setValue:code forKey:@"Refer Code"];
  34.     [self parameters:parameters intercomAndLocalyticsEvent:@"Refer A Friend Tapped Share"];
  35. }
  36.  
  37. + (void)sharedReferAFriendCode:(NSString *)code
  38.                         source:(NSString *)source
  39. {
  40.     NSString *countryCode = [User current].country.code;
  41.     NSMutableDictionary *parameters = [NSMutableDictionary dictionary];
  42.     [parameters setValue:countryCode forKey:@"Country Code"];
  43.     [parameters setValue:code forKey:@"Refer Code"];
  44.     [parameters setValue:source forKey:@"Source"];
  45.     [self parameters:parameters intercomAndLocalyticsEvent:@"Refer A Friend Shared Code"];
  46. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top