updated analytics sub