activity tracking & cookie retrieval