updated analytics workflow