Move analitics code