move analytics to seperate script element