Added rules for analytics