Letting their fingers do the work on the keyboard was the primary way customers did their holiday shopping.
Overall holiday retail sales rose 3.4 percent.
President Trump took to Twitter to trumpet the data.
Sales estimates from the National Retail Federation ranged from 3.8 percent to 4.2 percent.
E-commerce sales this year represented 14.6 percent of total retail between November 1 and Christmas Eve.
The holiday shopping season is crucial for retailers accounting for up to 40 percent of the sales for the year.
The calendar didn't help the industry as Thanksgiving fell on Nov. 28, which was a week later than last year.
That meant retailers had six fewer days to drive sales leading to Christmas.
"Due to a later than usual Thanksgiving holiday, we saw retailers offering omnichannel sales earlier in the season, meeting consumers’ demand for the best deals across all channels and devices," said Steve Sadove, senior adviser for MasterCard.
According to analysts, the surge in shopping was boosted by wage growth and a string job market.