Clear History

Tracking

flowchart LR id1(Upload)-->id2(Model)-->id3(Visualize)-->id4(Track)-->id5(Next steps) style id4 fill:#f5f5f5,stroke:#6638B8,stroke-width:3px style id1 fill:#f5f5f5,stroke:#333,stroke-width:1px style id3 fill:#f5f5f5,stroke:#333,stroke-width:1px style id5 fill:#f5f5f5,stroke:#333,stroke-width:1px style id2 fill:#f5f5f5,stroke:#333,stroke-width:1px

Mobile hybrid apps implement some app logic in the platform native code (e.g. in Swift, Kotlin, or React Native) while some UI is implemented using embedded Web views. Since the two parts are developed using separate code bases, Snowplow events need to be tracked separately.

This part guides you to instrument Snowplow tracking in both the Web view and native mobile code and track events with consistent session and properties on both sides. It is structured in three parts:

  1. Installation of the trackers in your apps.
  2. Instrumenting your native app with the mobile trackers and setting up the Web view communication.
  3. Tracking events from your Web view with the WebView tracker.