Moved analytics script to index