added Analytics
Added analytics more functionality