Receiving Analytics data

The analytics data sent out from the Plattar Frame will have a string with the format <Object Type>:<Event>:<Object ID/Title>.

Object type will describe what class of object triggered the event, eg ‘Scene’ or ‘Button’.

Event is the type of event that was triggers, eg ‘Loaded’ or ‘Tapped’

Object ID/Title will be a way of identifying which object has spawned the event.

comms.on('analyticstracker', function(data){
	var eventArray =':');
	ga('send', {
		hitType: 'event',
		eventCategory: eventArray[0],
		eventAction: eventArray[1],
		eventLabel: eventArray[2]