modify analytics code