The Munster fly-half, no longer an automatic first choice at number 10 with Jonathan Sexton also vying for the position, scored one of Ireland's three tries and added all three conversions as Ireland scraped home.
And he can expect to be retained for the clash with Wales in Cardiff on Saturday week.
“I think at this level the margins are very fine, losing by one score to France, beating Italy by one score, winning here by one score,” O'Gara said.
“I think we were very good at times today and very poor at times, but in the end it's all about winning and that's what we did.
“I'm far from finished, I really enjoy playing with the boys. There is no better place than Murrayfield to express yourself. We had fantastic support today and I think means a lot to the players.”
Meanwhile, Irish coach Declan Kidney said he had “no interest” in entering into criticism of referee Nigel Owens after the Welsh official was blasted by his Scottish opposite number Andy Robinson.
Ireland have had issues with the officiating in their first two matches against Italy and Scotland and have followed the established process of referral to IRB referees manager Paddy O'Brien.
Something Kidney said they will be doing again after yesterday's difficulties.
“There needs to be an integrity kept with the referees,” said Kidney.
“We lost a game two weeks ago when we could have come in sledging about the referee, we didn't, we followed the process and we intend to do the same thing again.
“There were penalties given against us in the last game that have since been acknowledged that at least one of those should have been turned around and on two more occasions there should have a penalty awarded to us just before there was penalties awarded against us,” he added.
“The referees, they have been quite happy for me to be able to say this, they are willing to hold their hands up when it's wrong. So I think it is important that we stick to what the truth is here as against perception.
“The facts are that the penalty count ended up today 13-4, we are not complaining, we didn't complain the last day.
“We want to get our fair crack of the whip, we could be just in here complaining about it.
“I've met these referees, they're good men, they give it their best opinion. We have been apologised to for getting some things wrong in the last two matches, let's see what happens after today,” said Kidney.
COMMENT RULES: Comments that are judged to be defamatory, abusive or in bad taste are not acceptable and contributors who consistently fall below certain criteria will be permanently blacklisted. The moderator will not enter into debate with individual contributors and the moderator’s decision is final. It is Belfast Telegraph policy to close comments on court cases, tribunals and active legal investigations. We may also close comments on articles which are being targeted for abuse. Problems with commenting? firstname.lastname@example.org