Modify analytics code