This developer guide describes how to measure events in your app using the Google Analytics SDK for iOS v2.
Events are a useful way to collect data about a user's interaction with interactive components of your app, like button presses or the use of a particular item in a game.
An event consists of four fields that you can use to describe a user's interaction with your app content:
NSNumber(Optional) Value, interpreted as 64-bit integer
To send an event, call
For example, you could measure a button press with the following code:
[tracker sendEventWithCategory:@"uiAction" withAction:@"buttonPress" withLabel:buttonName withValue:[NSNumber numberWithInt:100]];