David Goldberg, the SurveyMonkey CEO who also was Facebook executive Sheryl Sandberg's husband, was exercising at a gym in a Mexican resort when he collapsed before he died Friday, a person close to the family said.
The person wasn't authorized to speak publicly and spoke on condition of anonymity.
Efforts to revive Goldberg, who was vacationing with family and friends, were unsuccessful.
The family is planning a service in Silicon Valley on Tuesday. It is by invitation only and closed to the press.
Goldberg died of severe head trauma in an accident while exercising at a resort in the Mexican town of Punta Mita, a Mexican state official said Monday. He was found lying next to a treadmill Friday at the resort, which is near Puerto Vallarta.
The popular Silicon Valley executive, whose company runs an online service for people who want to conduct questionnaires and polls, died Friday night at age 47. His company and family members confirmed his death Saturday but they did not give a cause of death, leading to widespread speculation.
Goldberg left his room at about 4 p.m. to exercise, and family members went to look for him after he didn't return, the Mexican official said. He was found at about 6:30 p.m. in one of the resort's gymnasiums lying by a treadmill in a pool of blood, with a blow to the lower back of his head.
He apparently had slipped on the treadmill and hit the machine, said the official, who was not authorized to speak to the press and spoke on condition of anonymity.
Goldberg still had vital signs when he was discovered, but later died at a hospital in Nuevo Vallarta, the official said. The cause of death was severe head trauma and bleeding, the official said.
The official said the family had checked in Thursday to the Four Seasons Resort Punta Mita, an exclusive resort where rooms start at $500 a night and villas go for up to $5,000 a night.
The Four Seasons, however, issued a statement saying the incident did not happen on any of its properties and that David Goldberg was not registered as a guest in any of the resort's rooms, villas or residences.
But Nayarit state officials said it was the location and that the family had checked in Thursday.
In an interview last month, Goldberg told the news site Business Insider of maxing out his credit cards in the early 1990s to fund one of his first Internet ventures, a music site, before going on to work at other tech companies, including Yahoo.
In 2004, Goldberg married Sandberg, another longtime tech executive who now serves as chief operating officer of Facebook Inc.
Sandberg launched an international conversation about the dearth of women in positions of power with her 2011 book "Lean In: Women, Work and the Will to Lead." In it, Sandberg wrote of the adjustments she and her husband had to make to manage two high-profile careers while raising two children.
On Monday, the Walt Disney Co. moved up its earnings release to Tuesday morning to allow executives to attend Goldberg's funeral. Sandberg is a member of Disney's board of directors. The earnings report was originally scheduled for the afternoon following the stock market close.
Dave Goldberg and Sheryl Sandberg
AP source: Goldberg died after collapsing in gym
Sheryl Sandberg, chief operating officer of Facebook Inc., left, and her husband David 'Dave' Goldberg, chief executive officer of SurveyMonkey, arrive to a morning session at the Sun Valley Lodge during the Allen & Co. Media and Technology Conference in Sun Valley, Idaho, U.S., on Wednesday, July 9, 2014. Technology companies from Silicon Valley are expected to take center stage at this year's Allen & Co.'s Sun Valley conference as tech and media converge. Photographer: Scott Eells/Bloomberg via Getty Images
DUBLIN, IRELAND - NOVEMBER 05: In this handout image supplied by Sportsfile, Dave Goldberg, CEO of Survey Monkey, speaks on the centre stage during Day 2 of the 2014 Web Summit at the RDS on November 5, 2014 in Dublin, Ireland. (Photo by Stephen McCarthy / SPORTSFILE via Getty Images)
Sheryl Sandberg, chief operating officer of Facebook Inc., left, walks with her husband David 'Dave' Goldberg, chief executive officer of SurveyMonkey.com LLC, as they arrive at the Sun Valley Lodge ahead of the Allen & Co. Media and Technology Conference in Sun Valley, Idaho, U.S., on Tuesday, July 8, 2014. Billionaires, chief executive officers, and leaders from the technology, media, and finance industries will gather this week at the Idaho mountain resort conference hosted by investment banking firm Allen & Co. Photographer: Daniel Acker/Bloomberg via Getty Images
MUNICH, GERMANY - JANUARY 23: Dave Goldberg, CEO of SurveyMonkey, speaks during the Digital Life Design conference (DLD) at HVB Forum on January 23, 2012 in Munich, Germany. DLD (Digital - Life - Design) is a global conference network on innovation, digital, science and culture which connects business, creative and social leaders, opinion-formers and investors for crossover conversation and inspiration. (Photo by Johannes Simon/Getty Images)
SUN VALLEY, ID - JULY 09: Sheryl Sandberg, chief operating officer (COO) of Facebook, and her husband David Goldberg, CEO of SurveyMonkey, attend the Allen & Company Sun Valley Conference on July 9, 2014 in Sun Valley, Idaho. Many of the worlds wealthiest and most powerful businessmen from media, finance, and technology attend the annual week-long conference which is in its 32nd year. (Photo by Scott Olson/Getty Images)
SUN VALLEY, ID - JULY 08: Sheryl Sandberg, Chief Operating Officer (COO) of Facebook, and her husband David Goldberg, CEO of SurveyMonkey, arrive for the Allen & Company Sun Valley Conference on July 8, 2014 in Sun Valley, Idaho. Many of the worlds wealthiest and most powerful businessmen from media, finance, and technology attend the annual week-long conference which is in its 32nd year. (Photo by Scott Olson/Getty Images)
SUN VALLEY, ID - JULY 10: Sheryl Sandberg, COO of Facebook, and her husband David Goldberg arrive for morning session of the Allen & Co. annual conference at the Sun Valley Resort on July 10, 2013 in Sun Valley, Idaho. The resort is hosting corporate leaders for the 31st annual Allen & Co. media and technology conference where some of the wealthiest and most powerful executives in media, finance, politics and tech gather for weeklong meetings. Past attendees included Warren Buffett, Bill Gates and Mark Zuckerberg. (Photo by Kevork Djansezian/Getty Images)
MENLO PARK, CA - FEBRUARY 10: Facebook COO Sheryl Sandberg speaks during a Safer Internet Day event at Facebook headquarters on February 10, 2015 in Menlo Park, California. California Attorney General Kamala Harris delivered the keynote speech at a Safer Internet Day event that is designed to promote safe, effective use of the internet and mobile technology. Safer Internet Day is celebrated in over 100 countries on the the second Tuesday in February. (Photo by Justin Sullivan/Getty Images)
SUN VALLEY, ID - JULY 09: JULY 10: Sheryl Sandberg, COO of Facebook, and her husband David Goldberg arrives for the Allen & Co. annual conference on July 9, 2013 in Sun Valley, Idaho. The resort will host corporate leaders for the 31th annual Allen & Co. media and technology conference where some of the wealthiest and most powerful executives in media, finance, politics and tech gather for weeklong meetings which begins Tuesday. Past attendees included Warren Buffett, Bill Gates and Mark Zuckerberg. (Photo by Kevork Djansezian/Getty Images)