Trott was sixth overnight at the midway point in the omnium before a second-day rally saw her take a second gold of the competition following the team pursuit success on day one.
"I wouldn't necessarily say I'm getting better at it; there's a lot of room to improve," she said.
The 21-year-old from Cheshunt placed second in the individual pursuit, before a gutsy winning ride in the scratch race propelled her to top spot in the rankings with one event remaining.
The bunch races are not normally Trott's forte, yet she seized her opportunity by being the second of two riders to lap the field and out-sprinted Poland's Malgorzata Wojtyra to win. It was the first time she had gained a lap in a scratch race.
"Normally in the omnium you're sitting back and you're just racing the people in the top six," she said.
"I was never going to win the omnium by doing that. My coach (Chris Newton) said to me 'just go for it'.
"When you're a kid and you race nationals, you race like that. You just think 'sod it' and go.
"If I didn't get the lap I didn't get it, at least I'd tried. But I did get it and it paid off, because then I only had to sprint against one person."
Roared on by a partisan crowd, Trott also won the sixth discipline, the 500metres time-trial, to win by 19 points, five points clear of runner-up Gillian Carleton of Canada.
Trott added: "I don't think I would've won if it wasn't for them. "In the 500 as well, my first half-lap felt horrendous, but they were cheering and I was like 'I've got to do it, haven't I?'"
Trott's win was Britain's only gold on the final day as the hosts finished with four titles to Germany's five.
All of Germany's medals were gold - Britain won eight in all - with two on the final day.
Robert Forstemann beat Trinidad's Njisane Phillip 2-0 in the best of three final and Kristina Vogel claimed her third title, winning the women's Keirin ahead of world champion Becky James.
Olympic champion Jason Kenny suffered an embarrassing early exit in the men's sprint, failing to negotiate qualifying which is usually a formality.
British Cycling performance director Sir Dave Brailsford believes it will act as a wake-up call.
"It will be a bitter pill for him to swallow but it will wake him up, and they are the important things at this stage of the Olympic cycle," Brailsford said.