Gov. Andrew Cuomo’s re-election campaign spent nearly $8 million in the final days of the campaign and in the aftermath of Election Day, a campaign finance report filed Monday shows.

Cuomo, who won a second term by defeating Republican Westchester County Executive Rob Astorino, has $9.1 million in cash on hand remaining in the account.

Cuomo began the most recent reporting period — 11 days before the election — with $15.7 million in the bank.

By contrast, Astorino was vastly outspent: The Republican nominee spent $1.4 million, virtually exhausting what money he had left in his campaign account.

Cuomo spent a similar figure in the final days of his 2010 campaign against Republican Carl Paladino: roughly $8 million. But that year he concluded the race with only $5 million in the bank.

The final also shows Cuomo spent $1.4 million in a final burst of TV ad spending, though he also transferred $3 million to the state Democratic committee, which had blanketed the airwaves on his behalf to blast Astorino in mostly negative ads.

The final also reflects the more targeted and data-driven approach Cuomo took to his re-election campaign: He spent $100,000 on the Analytics Media Group, a consulting firm based in Iowa that was founded by former Obama campaign staffers.

The group says it “introduces science to the art of media buying.”