seperated into a serpeate file of analytics code