Hi Guys,
I am trying to add my own Json Schema, but I am confused were should I upload / update:
- I am using Snowplow Mini for my Dev Environment, what exactly should I do step by step
- My Production environment, I used the snowplow quick setup with terraform. What exactly should I do to implement my sefl json? In wich server should I do the changes.
Below my Json Example and how I put in my code:
{
“$schema”: “http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#”,
“description”: “Schema for Login”,
“self”: {
“vendor”: “com.mycompany”,
“name”: “login”,
“format”: “jsonschema”,
“version”: “1-0-0”
},
“type”: “object”,
“properties”: {
“product_id”: {
“type”: “string”,
“description”: “Product Id”,
“maxLength”: 255
},
“product_name”: {
“type”: “string”,
“description”: “Product Name”,
“maxLength”: 255
},
“card_position”: {
“type”: “integer”,
“description”: “Card position for click on product card”,
“minimum”: 1,
“maximum”: 100
}
},
“additionalProperties”: false
function login(){
snowplow('trackSelfDescribingEvent', {
event: {
schema: 'iglu:com.mycompany/login/jsonschema/1-0-0',
data: {
product_id: 'jd7ujksd8-djdps89d98v-8klnl899n',
product_name: 'AX',
card_position: 1
}
}
});
};
Thanks by Advance