cleaning old files and inserting analytics code