On 27 November 1873, Goldie was elected to the Auckland Provincial Council for the Auckland West electorate. He remained a councillor until the abolition of provincial government at the end of 1876.[4]
Goldie contested the Auckland West electorate in a by-election on 4 March 1879. The by-election was caused by the resignation of Patrick Dignan, who also stood in this contest. Dignan and Goldie received 261 and 776 votes, respectively, and with a majority of 515 votes, Goldie was declared elected.[5] He served until the dissolution of parliament on 15 August of that year.[6]
Goldie represented the Auckland West electorate again from 1887 to 1890. He then represented the Newton electorate from 1890 to 1891 as a Liberal MP, when he resigned.[6]