Clear History

Testing

For manual and automated development testing on mobile, the best option is Snowplow Micro.

Step 1: Installation

Use Docker to start up a Micro pipeline. Follow these simple instructions if you are using only out-of-the-box events, or these instructions if you have added custom events or entities with your own schemas.

Once your Micro container is running, configure your tracker to send events to it by providing the Micro URI at tracker initialization. The default URI is http://0.0.0.0:9090. For example:

let tracker = Snowplow.createTracker(
  namespace: "appTracker", 
  endpoint: "http://0.0.0.0:9090" // Micro URL
)

Replace {{ip address goes here}} with your network IP address.

val tracker = Snowplow.createTracker(
    applicationContext, // Android context (LocalContext.current in Compose apps)
    "appTracker", // namespace
    "http://{{ip address goes here}}:9090" // Micro URL
)

Replace {{ip address goes here}} with your network IP address.

TrackerController tracker = Snowplow.createTracker(
      getApplicationContext(), // Android context
      "appTracker", // namespace
      "http://{{ip address goes here}}:9090" // Micro URL
);

Then interact with your app to track events.

Step 2: Check your data

Events are stored in Snowplow Micro in JSON format. Micro has three API endpoints. Access localhost:9090/micro/good to get all the valid events. Read more here.