Added analytics codes