Skip to content

VisitSchema

Colander

We use Colander to serialize and deserialize data we receive from our tag.

VisitSchema

This is a Colander schema node that holds all of the potential data and validation we would expect from a visit. Some of this is taken directly from our tag (eg, visitor ID (vid), referrer) and some is taken from request headers (language is taken from the 'Accept-Language' header for example). These are also referred to as nodes. Per Colander best practice, each node has a type (eg String, Bool) to confirm the data is at least of the type we are expecting, and most nodes also have custom validation for things such as length or whether or not they are present.