Custom Events

If you want a customer journey to be executed after an action on your website, you can use the following method:

CustomerIndigitall.sendCustomerCustomEvent(["dataKey":"dataValue"], eventCode: "eventCode") { INCustomer in
            print("event ok")
        } failed: { INError in
            print("event error")
        }

For example:

CustomerIndigitall.sendCustomerCustomEvent(
  ["name": "John","value": "123"],
	 eventCode: "my_event") { INCustomer in
            print("event ok")
        } failed: { INError in
            print("event error")
        }