adds analytics, new code