过去2周,我一直在探索Unomi,在此过程中,我创建了用户会话和事件,并在用户属性和事件类型上创建了几个细分,但是当我想在事件属性上创建细分时,我陷入了困境。
首先,这是我们要发送给unomi的事件-
{
"source":{
"itemType":"pageView",
"scope":"the-coolest-website",
"itemId":"pageView"
},
"events":[
{
"eventType":"view",
"scope":"the-coolest-website",
"source":{
"itemType":"pageView",
"scope":"the-coolest-website",
"itemId":"pageView"
},
"properties":{
"myProperty":"myValue"
}
}
]
}
我们要做的是创建一个细分,该细分定位具有myProperty:myValue键值对的事件。
我创建的细分如下:
{
"metadata": {
"id": "myPropertySegment",
"name": "myPropertySegment",
"scope":"the-coolest-website",
"description": "The user has this segment if it has acessed our products Website.",
"readOnly": true
},
"condition": {
"parameterValues": {
"subConditions": [
{
"parameterValues": {
"propertyName": "myProperty",
"comparisonOperator": "equals",
"propertyValue": "myValue"
},
"type": "eventPropertyCondition"
}
],
"operator": "and"
},
"type": "booleanCondition"
}
}
在上述事件属性段中,用户没有资格将事件属性设置为“ myProperty”:“ myValue”。
在事件类型上创建了另一个细分:
{
"metadata": {
"id": "eventCondition",
"name": "eventCondition",
"scope": "the-coolest-website",
"description": "The user has this segment if it has acessed our products Website.",
"readOnly": true
},
"condition": {
"parameterValues": {
"subConditions": [
{
"parameterValues": {
"propertyName": "eventType",
"comparisonOperator": "equals",
"propertyValue": "myAwesomeUserEvent"
},
"type": "eventTypeCondition"
}
],
"operator": "and"
},
"type": "booleanCondition"
}
}
在上述事件类型细分中,用户具有使用eventType作为myAwesomeUserEvent的资格。
在创建事件属性的细分时,请帮助我,并让我知道在创建细分时是否出错。