Embedded analytics technology