Add demographics code to analytics