adds analytics snippet