Initial cut at analytics with custom variables.