finishes the even tracking analytics.