Added custom analytics code.