before_index code for tracking_summary for resources