Feature/analytics

I'd also move the whole tracking code to a separate file and just include it here to keep the layout file clean.