Home / Companies / Snowplow / Blog / Post Details
Content Deep Dive

How to Create Custom Self-Describing Events and Contexts in Snowplow

Blog post from Snowplow

Post Details
Company
Date Published
Author
Snowplow Team
Word Count
1,022
Language
English
Hacker News Points
-
Summary

Snowplow offers robust event tracking capabilities, including the ability to define custom, self-describing events using its Iglu schema system, which is particularly useful for capturing domain-specific interactions not covered by default models. Unlike structured events that utilize predefined fields, self-describing events employ a JSON Schema to validate the data's format and content, allowing for strong schema enforcement and versioning. The guide outlines the process of creating and tracking such events, from identifying the event to defining a JSON Schema, validating it, and setting up a repository for schema storage. Additionally, it provides instructions on testing new self-describing events using tools like Snowplow Mini and Micro, and emphasizes the flexibility Snowplow's system offers for tracking a diverse range of interactions, whether they occur in gaming, IoT, or e-commerce contexts. The guide also highlights the importance of testing schemas in non-production environments to avoid common validation issues and provides tips on using igluctl for schema development, while noting differences in handling schemas in BigQuery or Snowflake environments.