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

A guide to custom contexts in Snowplow JavaScript Tracker 0.13.0

Blog post from Snowplow

Post Details
Company
Date Published
Author
Alex Dean
Word Count
1,103
Language
English
Hacker News Points
-
Summary

Snowplow has recently introduced version 0.13.0 of its JavaScript Tracker, which allows users to set custom JSON contexts in tracking methods, enhancing the value of standard events by attaching additional business-critical data points. The update supports custom contexts for various track and add methods, enabling users to attach specific data relevant to their business needs. A detailed example is provided, illustrating how a retailer selling movie memorabilia can use custom contexts to enrich Snowplow events by defining contexts for items such as movie posters and customer data. These contexts are then used in events like page views and adding items to a basket, promoting important data points to first-class entities within Snowplow. The post also highlights that the Enrichment process does not currently extract custom contexts, and there is no validation for custom context properties in the JavaScript Tracker yet. Users are encouraged to share their feedback and keep updated via Snowplow's Roadmap wiki page.