Receipt should be just data. Mixing analytics in it seems to be overkill. Making it easy to feed the data to a separate analytics app seems to be a better idea so that consumers can analyze their spending not only for that particular instance of purchase but also over a period of time.