write analytics collect url to text file and display it in ui
checks for both collect and r/collect analytics url
moved functions to seperate script