Adds analytics code to the project