Add analytics script to index