Adjust Mixpanel properties

This commit is contained in:
Scott Kyle 2016-02-17 13:46:00 -08:00
parent b7c46b701c
commit 0c9d70905a
2 changed files with 9 additions and 3 deletions

View File

@ -4,7 +4,7 @@
#import "RealmAnalytics.h" #import "RealmAnalytics.h"
#if TARGET_IPHONE_SIMULATOR #if TARGET_IPHONE_SIMULATOR || TARGET_OS_MAC
#import <CommonCrypto/CommonDigest.h> #import <CommonCrypto/CommonDigest.h>
#import <sys/socket.h> #import <sys/socket.h>
#import <sys/sysctl.h> #import <sys/sysctl.h>
@ -145,10 +145,15 @@ static NSDictionary *RLMAnalyticsPayload() {
@"Anonymized Bundle ID": hashedBundleID ?: kUnknownString, @"Anonymized Bundle ID": hashedBundleID ?: kUnknownString,
// Which version of Realm is being used // Which version of Realm is being used
@"Binding": @"react-native", @"Binding": @"js",
@"Language": @"js", @"Language": @"js",
@"Framework": @"react-native",
@"Realm Version": [[@(RealmReactVersionString) componentsSeparatedByString:@"-"] lastObject] ?: kUnknownString, @"Realm Version": [[@(RealmReactVersionString) componentsSeparatedByString:@"-"] lastObject] ?: kUnknownString,
#if TARGET_OS_MAC
@"Target OS Type": @"osx",
#else
@"Target OS Type": @"ios", @"Target OS Type": @"ios",
#endif
// Current OS version the app is targetting // Current OS version the app is targetting
@"Target OS Version": [[NSProcessInfo processInfo] operatingSystemVersionString], @"Target OS Version": [[NSProcessInfo processInfo] operatingSystemVersionString],
// Minimum OS version the app is targetting // Minimum OS version the app is targetting

View File

@ -60,8 +60,9 @@ public class RealmAnalytics {
+ " \"distinct_id\": \"%USER_ID%\",\n" + " \"distinct_id\": \"%USER_ID%\",\n"
+ " \"Anonymized MAC Address\": \"%USER_ID%\",\n" + " \"Anonymized MAC Address\": \"%USER_ID%\",\n"
+ " \"Anonymized Bundle ID\": \"%APP_ID%\",\n" + " \"Anonymized Bundle ID\": \"%APP_ID%\",\n"
+ " \"Binding\": \"react-native\",\n" + " \"Binding\": \"js\",\n"
+ " \"Language\": \"js\",\n" + " \"Language\": \"js\",\n"
+ " \"Framework\": \"react-native\","
+ " \"Realm Version\": \"%REALM_VERSION%\",\n" + " \"Realm Version\": \"%REALM_VERSION%\",\n"
+ " \"Host OS Type\": \"%OS_TYPE%\",\n" + " \"Host OS Type\": \"%OS_TYPE%\",\n"
+ " \"Host OS Version\": \"%OS_VERSION%\",\n" + " \"Host OS Version\": \"%OS_VERSION%\",\n"