E-commerce tracking using xAPI

Currently we are tracking purchases.

  • verb: http://activitystrea.ms/schema/1.0/purchase

  • extension key: https://proto.eduplex.eu/xapi/extension/purchase

  • extension data:

    {
      "ecommerce": {
        "transaction": {
          "id": "X-XXXXXXXXXXX",
          "affiliation": "CT",
          "revenue": 0.1,
          "shipping": 0,
          "price_total": 0.1,
          "currency": "EUR"
        },
        "items": [
          {
            "id": "E-20",
            "name": "E-20",
            "brand": 4,
            "category": "Event-de",
            "price": 0,
            "quantity": 1,
            "price_unit": 0,
            "currency": "EUR"
          }
        ]
      }
    }

As every statement we are saving also data from the offer in the extension key https://proto.eduplex.eu/xapi/extension/course_data

Example

Click here to watch an example of the statement

Last updated