Use the following method when the user views a product:
Code Block | ||||
---|---|---|---|---|
| ||||
NSMutableDictionary *properties = [[NSMutableDictionary alloc] init]; [properties setObject:@"Product Code" forKey:@"OM.pv"]; [properties setObject:@"Product Brand" forKey:@"OM.pv.1"]; [properties setObject:@"Product Name" forKey:@"OM.pn"]; [properties setObject:@"Product Price" forKey:@"OM.ppr"]; [properties setObject:@"Number of items in stock" forKey:@"OM.inv"]; [properties setObject:@"memberID/userID" forKey:@"OM.exVisitorID"]; [properties setObject:@"Token ID to use for push messages" forKey:@"OM.sys.TokenID"]; [properties setObject:@"App ID to use for push messages" forKey:@"OM.sys.AppID"]; [[Visilabs callAPI] customEvent:@"Product View" withProperties:properties]; |
...