Functions in Hype xAPI
HypeXAPI

HypeXAPI.sendStatementByDataset

1min

This function sends a statement based on dataset attributes. To use this function, simply pass in the element that you want the attributes to be taken from. The function will then send a statement based on those attributes. For example, if you have an element with the following attributes: data-xapi-actor = "John Doe" data-xapi-verb = "likes" data-xapi-object = "cats" The function will send a statement like this: John Doe likes cats

JS