add analyticsHost to locals