Super easy guide to test schemas with Micro OR any Collector
Last updated: July 14, 2026
- If you will send events to a Collector, skip until step 6 and also skip step 12.6
- NOTE: MICRO and Tracker Versions can vary, keep them updated!
-
Micro is now Self-Serve! you can run it locally (steps below) or you can simply create a Micro in one of our Snowplow Sandbox accounts. Steps are here https://docs.snowplow.io/docs/testing/snowplow-micro/console/
- Once you finalize testing, delete the Micro from the Console Workspace to avoid unnecessary infra costs.
- If you will use Snowplow Micro and sending just page views or OOTB events, use:
docker run -p 9090:9090 snowplow/snowplow-micro:4.2.0-
- Get the Iglu endpoint from a Console organization
- Get an Iglu API Key
- https://console.snowplowanalytics.com/iglu-keys If you need to use an external Iglu Repo:
export MICRO_IGLU_REGISTRY_URL=https://com-example.iglu.snplow.net/api export MICRO_IGLU_API_KEY=abcdef123456 docker run -p 9090:9090 \ -e MICRO_IGLU_REGISTRY_URL \ -e MICRO_IGLU_API_KEY \ snowplow/snowplow-micro:4.2.0- REMEMBER TO DELETE API KEYS AFTER YOU ARE DONE!
- Alternatively, you can add a custom schema to the Micro
- OR you can also use a custom Iglu Resolver config file.
- Then, create a single HTML file, name it index.html, with the next code.
- If you need to send data to another Collector URL, just change it in tracker initialization code.
- Page View example:
Snowplow Tracker Example Hello, Snowplow!
- SelfDescribingEvent example. Of course, change the schema being referenced! and use a custom Iglu from step 2
Snowplow Tracker - Custom Event Track Custom Tournament Event
- Use NPM to create the simplest http server possible:
- Install Brew and run the below commands in iTerm or any terminal:
brew install npm npm install -g http-server cd /Folder/whith/index.html http-server- Thats it. You have a working server. You can hit the above index.html by simply going to http://localhost:8080/
- After hitting that, the events will fire automatically. You can check Developer Tools to troubleshoot any issues (Check Network and Console).
- Changes to your html file will be instantly reflected. No need to restart the http-server.
- Go to your Micro UI http://localhost:9090/micro/ui/ and see the Events :) (Or use the Console details to open your Micro if you used a self-serve one).
- Happy hunting.