Mr Shah is scheduled to arrive in Assam capital on Sunday to address leaders of the Bharatiya Janata Party-led North East Democratic Alliance (NEDA) from all the northeastern states.
Mr Gogoi, who leads Krishak Mukti Sangram Samiti (KMSS), had on Saturday urged the people of Assam to protest against the visit of Shah by displaying black flags "to send a strong message to the BJP President" over the Citizenship Amendment Bill, 2016.
Police arrested Mr Gogoi when he was protesting near Srimanta Sankardeva Kalakshetra, where the NEDA meeting is scheduled.
"I once again appeal to the people to unite against the Citizenship (Amendment) Bill and protest against the visit of Mr Shah by showing black flags to him," Mr Gogoi added.
Election Results for Lok Sabha Election 2019 will be out on May 23. Get the latest election news and live updates on ndtv.com/elections. Catch all the action on NDTV Live. Like us on Facebook or follow us on Twitter and Instagram for news updates from each of the 543 parliamentary seats for the election 2019