Analytics Changed: New Code and Domain Parameter

+- changed to new analytcis code
++ added domain parameter