Skip to content

Commit cdec053

Browse files
Googlera-maurice
authored andcommitted
Add FIREventScreenView and params
PiperOrigin-RevId: 321183165
1 parent 30f9b9e commit cdec053

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

analytics/ios_headers/FIREventNames.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,15 @@ static NSString *const kFIREventPurchaseRefund NS_SWIFT_NAME(AnalyticsEventPurch
263263
static NSString *const kFIREventRemoveFromCart NS_SWIFT_NAME(AnalyticsEventRemoveFromCart) =
264264
@"remove_from_cart";
265265

266+
/// Screen View event. This event signifies a screen view. Use this when a screen transition occurs.
267+
/// This event can be logged irrespective of whether automatic screen tracking is enabled. Params:
268+
///
269+
/// <ul>
270+
/// <li>@c kFIRParameterScreenClass (NSString) (optional)</li>
271+
/// <li>@c kFIRParameterScreenName (NSString) (optional)</li>
272+
/// </ul>
273+
static NSString *const kFIREventScreenView NS_SWIFT_NAME(AnalyticsEventScreenView) = @"screen_view";
274+
266275
/// Search event. Apps that support search features can use this event to contextualize search
267276
/// operations by supplying the appropriate, corresponding parameters. This event can help you
268277
/// identify the most popular content in your app. Params:

analytics/ios_headers/FIRParameterNames.h

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,26 @@ static NSString *const kFIRParameterQuantity NS_SWIFT_NAME(AnalyticsParameterQua
385385
/// </pre>
386386
static NSString *const kFIRParameterScore NS_SWIFT_NAME(AnalyticsParameterScore) = @"score";
387387

388+
/// Current screen class, such as the class name of the UIViewController, logged with screen_view
389+
/// event and added to every event (NSString). <pre>
390+
/// NSDictionary *params = @{
391+
/// kFIRParameterScreenClass : @"LoginViewController",
392+
/// // ...
393+
/// };
394+
/// </pre>
395+
static NSString *const kFIRParameterScreenClass NS_SWIFT_NAME(AnalyticsParameterScreenClass) =
396+
@"screen_class";
397+
398+
/// Current screen name, such as the name of the UIViewController, logged with screen_view event and
399+
/// added to every event (NSString). <pre>
400+
/// NSDictionary *params = @{
401+
/// kFIRParameterScreenName : @"LoginView",
402+
/// // ...
403+
/// };
404+
/// </pre>
405+
static NSString *const kFIRParameterScreenName NS_SWIFT_NAME(AnalyticsParameterScreenName) =
406+
@"screen_name";
407+
388408
/// The search string/keywords used (NSString).
389409
/// <pre>
390410
/// NSDictionary *params = @{

0 commit comments

Comments
 (0)