update for analytics plugin