Hi everyone!
I have several questions and troubles with Self-describing event (Unstructured events) using Java Script tracker.
FYU:
- We have subdomain sp.napolke.ru where schema exists
- Im using GTM to initialize tracker
- We are using Scala Collector
Questions
My tracker looks like:
<script>
snowplow('trackSelfDescribingEvent', {
schema: 'iglu:ru.napolke.sp/schemas/ru.napolke.sp/main_test/jsonschema/1-0-0'
data: {
name: 'test',
price: '100',
}
});
</script>
link on shema: http://sp.napolke.ru/schemas/ru.napolke.sp/main_test/jsonschema/1-0-0
Schema:
{
"$schema": "https://sp.napolke.ru/schemas/ru.napolke.sp/main_test/jsonschema/1-0-0",
"description": "Napolke snowplow autogenerated schema",
"self": {
"vendor": "ru.napolke.sp",
"name": "main_test",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 500
},
"price": {
"type": "number"
}
},
"additionalProperties": false,
"required": [
"name"
]
}
Do we need to write link on schema like: 'iglu:ru.napolke.sp/schemas/ru.napolke.sp/main_test/jsonschema/1-0-0'
or
'iglu:sp.napolke.ru/schemas/ru.napolke.sp/main_test/jsonschema/1-0-0' ?
- Does SnowPlow Debugger works correctly?
I found that there 2 schemas and i don’t understand why
Can i just place schema on website and not making repos?
Actually i don’t understand:
- Syntax
- Where should i place schema
- How should i validate it
Thanks for help!