move analytics to end