Added analytics code in group study