update to analytics code for capturing demograpic data