move the init_analytics out to match the structure