Adds extra analytics code