Added demographics code to analytics