Skip to main content

Snowtype configuration options

The Snowtype CLI configuration will be saved in asnowtype.config.json file after initialization. We highly recommend you keep this file in the root of your project folder.

Attributes in snowtype.config.jsonโ€‹

igluCentralSchemasโ€‹

The schema tracking URLs for schemas available in Iglu Central.

dataStructuresโ€‹

The schema tracking URLs for Data Structures published in the Console.

eventSpecificationIdsโ€‹

The Event Specification IDs you wish to generate tracking code for. The Event Specification ID is a UUID that can be retrieved as the final part of the URL when visiting an event specification main page.

dataProductIdsโ€‹

The Data Product IDs you wish to generate tracking code for. By providing the Data Product Id, Snowtype will fetch all the event specifications for the Data Product and generate code for all of them. The Data Product ID is a UUID that can be retrieved as the final part of the URL when visiting a data product main page.

organizationIdโ€‹

The Organization ID for your Snowplow BDP account. The Organization ID is a UUID that can be retrieved from the URL immediately following the .com when visiting console.

trackerโ€‹

The target tracker to generate the required code for. See list of available trackers.

languageโ€‹

The target language to generate the required code for. See list of available languages.

outpathโ€‹

The outpath relative to the current working directory when running the script.

Example configuration fileโ€‹

{
"igluCentralSchemas": ["iglu:com.snowplowanalytics.snowplow/web_page/jsonschema/1-0-0"],
"dataStructures": ["iglu:com.myorg/custom_web_page/jsonschema/1-1-0"],
"eventSpecificationIds": [
"a123456b-c222-11d1-e123-1f123456789g"
],
"dataProductIds": [
"a123456b-c222-11d1-e123-1f12345678dp"
],
"organizationId": "a654321b-c111-33d3-e321-1f123456789g",
"tracker": "@snowplow/browser-tracker",
"language": "typescript",
"outpath": "./src/snowtype"
}
Was this page helpful?