coke freestyle analytics backend code