analytics app added, group_data function