Added analytics scripts to views