Views¶
A “view” represents the action of a user viewing an entity and is an extremely useful analytics tool
Recording Views¶
- (void)recordView {
SZEntity *entity = [SZEntity entityWithKey:@"some_key_or_url" name:@"Something"];
[SZViewUtils viewEntity:entity success:^(id<SocializeView> view) {
NSLog(@"View created: %d", [view objectID]);
} failure:^(NSError *error) {
NSLog(@"Failed recording view: %@", [error localizedDescription]);
}];
}