Skip to main content
Version: 1.3.0

Screen View

A screen_view event example focused on Android and iOS Firebase implementations.

DataLayer Example

firebaseAnalytics.logEvent(FirebaseAnalytics.Event.SCREEN_VIEW) {
param(FirebaseAnalytics.Param.SCREEN_NAME, "Checkout")
param(FirebaseAnalytics.Param.SCREEN_CLASS, "CheckoutScreen")
}

Event Properties

PropertyTypeConstraintsExamplesDescription
$schemastringrequired
"https://tracking-docs-demo.buchert.digital/schemas/1.3.0/mobile/screen-view-event.json"
Defines the structure of the event.
const: "https://tracking-docs-demo.buchert.digital/schemas/1.3.0/mobile/screen-view-event.json"
eventstringrequired
"screen_view"
The event name for a screen view.
const: "screen_view"
screen_namestringrequired
"Checkout"
Human-readable screen name.
screen_classstringrequired
"CheckoutScreen"
Screen class or view controller name.
additionalPropertiesSchema constraintControls properties not listed in properties and not matched by patternProperties.string, number, integer, boolean, null
View Raw JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://tracking-docs-demo.buchert.digital/schemas/1.3.0/mobile/screen-view-event.json",
  "title": "Screen View",
  "description": "A screen_view event example focused on Android and iOS Firebase implementations.",
  "x-tracking-targets": [
    "android-firebase-kotlin-sdk",
    "android-firebase-java-sdk",
    "ios-firebase-swift-sdk",
    "ios-firebase-objc-sdk"
  ],
  "type": "object",
  "properties": {
    "$schema": {
      "type": "string",
      "description": "Defines the structure of the event.",
      "const": "https://tracking-docs-demo.buchert.digital/schemas/1.3.0/mobile/screen-view-event.json"
    },
    "event": {
      "type": "string",
      "const": "screen_view",
      "description": "The event name for a screen view."
    },
    "screen_name": {
      "type": "string",
      "description": "Human-readable screen name.",
      "examples": [
        "Checkout"
      ]
    },
    "screen_class": {
      "type": "string",
      "description": "Screen class or view controller name.",
      "examples": [
        "CheckoutScreen"
      ]
    }
  },
  "required": [
    "$schema",
    "event",
    "screen_name",
    "screen_class"
  ],
  "allOf": [
    {
      "$ref": "https://tracking-docs-demo.buchert.digital/constraints/schemas/firebase/v1/flat-event-params.json"
    }
  ]
}