Janeu is sacred thread worn by devout Hindu men. Gotra, in Hinduism, refers to a clan or a descendant in an unbroken line from a common male ancestor.
Last year Gandhi had undertaken several temple visits in Gujarat which was undergoing polls in December. His temple visits continued in Karnataka earlier this year during the election campaign in the state.
Calling his temple visit an election gimmick to woo Hindu votes, the Bhartiya Janata Party has often criticised Gandhi.
Rahul Gandhi had invoked Lord Shiva while responding to the BJP's criticism of his visits during the Gujarat assembly elections last year.
"Main Shiv ka bhakt hoon, sachaai mein believe karta hoon. BJP jo bhi bole main apni sachaai mein believe karta hu (I am a devotee of Shiv. The BJP may say anything, but I will remain honest.)," Gandhi had retorted.
"For over 70 years since independence, the Congress has been playing 'bitter' politics in the name of secularism. They have been treating Hindus as second-grade citizens," Patra said in his latest tirade against the opposition Congress party.