HTTP Header Extractor Enrichment

Summary

This enrichment allows you to capture and store any headers sent from HTTP requests sent by website visitors to your Snowplow collector.

Overview

This community-contributed enrichment lets you specify which header fields that you want to extract via a regex pattern in the headersPattern parameter. If found, each extracted header field will end up as a single derived context in the JSON Schema org.ietf/http_header/jsonschema/1-0-0.

To read more about this enrichement go here.

If you’d like some help with configuring or deploying this enrichment in your pipeline please contact us at support@snowplowanalytics.com

Example

The example configuration bellow extracts all headers present in an HTTP request, including cookies and auxiliary headers.

{
  "schema": "iglu:com.snowplowanalytics.snowplow.enrichments/http_header_extractor_config/jsonschema/1-0-0",
  "data": {
    "name": "http_header_extractor_config",
    "vendor": "com.snowplowanalytics.snowplow.enrichments",
    "enabled": true,
    "parameters": {
      "headersPattern": [
        ".*"
      ]
    }
  }
}