updating analytics code for demographic support