Skip to content

Commit

Permalink
Protect nametag
Browse files Browse the repository at this point in the history
  • Loading branch information
samgreen committed Jun 24, 2016
1 parent f7a1e9e commit 0026e1a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Mixpanel/Mixpanel.m
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,9 @@ - (void)track:(NSString *)event properties:(NSDictionary *)properties
[self.timedEvents removeObjectForKey:event];
p[@"$duration"] = @([[NSString stringWithFormat:@"%.3f", epochInterval - [eventStartTime doubleValue]] floatValue]);
}
p[@"mp_name_tag"] = self.nameTag;
if (self.nameTag) {
p[@"mp_name_tag"] = self.nameTag;
}
p[@"distinct_id"] = self.distinctId;
[p addEntriesFromDictionary:self.superProperties];
if (properties) {
Expand Down

0 comments on commit 0026e1a

Please sign in to comment.