added anonymous tracker option to middleware