Skip to content

Instantly share code, notes, and snippets.

@involer
Created February 13, 2015 20:07
Show Gist options
  • Save involer/d4a1d820823596a6cb39 to your computer and use it in GitHub Desktop.
Save involer/d4a1d820823596a6cb39 to your computer and use it in GitHub Desktop.
Paddle Analytics - Track Custom Events

Tracking Custom Events

As well as the default events tracked by Paddle Analytics you can also track any number of custom events throughout your app. Simply use the track method:

+ (void)track:(NSString *)action properties:(NSDictionary *)properties;

This methods accepts an identifier for the action along with a dictionary of properties associated with the action. Take a look at the following example where we're tacking how many PDF Documents are exported from our example app:

  NSDictionary *properties = @{@"documentType": @"pdf"};
  [PaddleAnalyticsKit track:@"ExportDocument" properties:properties];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment