Import events

If you already got history of your contacts. Just create JSON export of your events and import by command

php app/console mautic:recommender:import --type=events`  
`--file="http://domain.tld/path/to/events.json"

JSON format example

[
  {
    "itemId": 13807,
    "eventName": "purchase",
    "contactEmail": "customer@domain.tld",
    "price": 41,
    "profit": 19,
    "dateAdded": "2018-12-24 11:12"
  },
  {
    "itemId": 13807,
    "eventName": "addToCart",
    "contactEmail": "customer2@domain.tld",
    "price": 19,
    "profit": 6,
    "dateAdded": "2019-01-11 09:12:31"
  }
]

Last updated