Hi, guys, I have events like client_lead__created
and deal__moved_to_negotation
.
I want pass in each event utms (which are mkt_*
params in snowplow), but I don’t understand how to do it.
If I wrote schema like this
{
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
"description": "Schema for client lead created",
"self": {
"vendor": "com.erodionov",
"name": "client_lead__created",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"id": {
"type": "number"
},
"mktMedium": {
"type": "string"
}
},
"required": ["id", "mktMedium"],
"additionalProperties": false
}
And then pass it in snoplow.js
like this
sp(`trackUnstructEvent`, {
schema: "iglu:com.erodionov/client_lead__created/jsonschema/1-0-0",
data: {
id: 1,
mktMedium: "cpc"
}
})
will it work? Will mktMedium
became mkt_medium
and not unstruct_event_com_erodionov_client_lead__created_1.mktMedium
?