init analytics