File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
Analytics/Integrations/Localytics Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -46,14 +46,14 @@ - (void)start {
46
46
SEGLog (@" LocalyticsIntegration initialized." );
47
47
}
48
48
49
- - (void )setCustomDimensions : (NSDictionary *)dimensions {
49
+ - (void )setCustomDimensions : (NSDictionary *)dictionary {
50
50
NSDictionary *customDimensions = self.settings [@" dimensions" ];
51
51
52
- for (NSString *key in dimensions ) {
53
- NSNumber *dimension = customDimensions[ key];
54
- if ( dimension) {
55
- NSString *dimensionValue = [ NSString stringWithFormat: @" %@ " , [dimensions objectForKey: key]];
56
- [Localytics setValue: dimensionValue forCustomDimension: [dimension integerValue ]];
52
+ for (NSString *key in dictionary ) {
53
+ if ([customDimensions objectForKey: key] != nil ) {
54
+ NSString * dimension = [customDimensions objectForKey: key];
55
+ [Localytics setValue: [dictionary objectForKey: key]
56
+ forCustomDimension: [dimension integerValue ]];
57
57
}
58
58
}
59
59
}
@@ -96,7 +96,9 @@ - (void)identify:(NSString *)userId
96
96
for (NSString *key in traits) {
97
97
NSString *traitValue =
98
98
[NSString stringWithFormat: @" %@ " , [traits objectForKey: key]];
99
- [Localytics setValue: traitValue forProfileAttribute: key withScope: LLProfileScopeApplication];
99
+ [Localytics setValue: traitValue
100
+ forProfileAttribute: key
101
+ withScope: LLProfileScopeApplication];
100
102
}
101
103
}
102
104
You can’t perform that action at this time.
0 commit comments