add segment analytics