hi,
after starting unomi server for the first time and create merge and copy rule.
I'm sending 2 events to http://{{UNOMI_URL}}/eventcollector .
they are attached to anonymous profile and the session is not persisted

code sample for the event sending
POST http://{{UNOMI_URL}}/eventcollector
{
    "sessionId" : "a1",
    "events":[
        {
            "eventType":"orderCreated",
            "scope": "store1",
            "properties" : {
              "email" : "a...@email.com",
              "store_id": "store1",
              "key": "store1#a...@mail.com",
              "value": 100,
              "currency": "USD"
            }
        }
    ]
}

merge rules:

{
  "metadata": {
    "id": "mergeProfile",
    "name": "merge",
    "description": "merge"
  },
  "condition": {
    "type": "booleanCondition",
    "parameterValues": {
      "subConditions": [
          {
            "type": "eventTypeCondition",
            "parameterValues": {
              "eventTypeId": "orderCreated"
            }
          },
          {
            "type": "eventTypeCondition",
            "parameterValues": {
              "eventTypeId": "reviewCreated"
            }
          }
      ],
      "operator": "or"
    }
  },
  "actions": [
    {
      "parameterValues": {
        "mergeProfilePropertyValue": "eventProperty::properties(key)",
        "mergeProfilePropertyName": "mergeIdentifier"
      },
      "type": "mergeProfilesOnPropertyAction"
    }
  ]
}

profile result:

{
    "itemId": "temp_95277704-a0eb-46df-9de3-37bb900cc799",
    "itemType": "profile",
    "version": 5,
    "properties": {
        "firstVisit": "2020-02-05T07:13:52Z",
        "email": "a...@mail.com"
    },
    "systemProperties": {
        "mergeIdentifier": "a...@mail.com"
    },
    "segments": [],
    "scores": {},
    "mergedWith": null,
    "consents": {}
}


Reply via email to