The Massachusetts Department of Transportation wants to keep and store electronic tolling gantries’ speed data for motorists for 30 days, according to recommendations submitted to the state Records Conservation Board.

According to the recommendations, the state also wants to keep travel data stored electronically for up to seven years and videos of cars driving under the gantries would be kept for 180 days.

The state is ready to shift to all-electronic tolling on Oct. 28. Rather than having to stop at a toll booth or even slow down, drivers can drive under the gantries and the technology will scan EZ-Pass transponders. Drivers without an EZ-Pass will have their license plate captured and the address registered with the specific plate will get a bill for the toll in the mail.

If a license plate is used in billing a driver, the plate information would be stored for seven years, per the recommendations.

Testing on the new system began in June, and toll booths are slated to come down next year.

The recommendations raised concerns among privacy advocates.

Kade Crockford, director of the Technology for Liberty Program for the ACLU of Massachusetts, said any information gathered by electronic tolling should be kept only as long as it is useful to collect tolls.

“The seven-year period for images of cars and license plates (for cars without EZ Pass), it’s unclear to me why they need to keep this information for so long,” Rockford said. “If MassDOT has hundreds of examples of people contesting six-year and six-month transponder data and it’s an important business purpose for them to keep it, seven years might make sense.”

Crockford said she’s also not sure why speed data is necessary to properly bill for tolls . Keeping information on where someone drives over a long period of time is problematic, she added.

“It creates a story — it tells a story about someone’s life, showing exactly when you’re on your way to work, when you’re on your way home,” she said. “Information that can be useful to burglars, for example, as Kim Kardashian West just discovered.”

During an interview on Herald Radio last month, Transportation Secretary Stephanie Pollack said MassDOT would put in place a privacy strategy to make sure personal data was not kept unnecessarily, citing hacking as a concern.

Pollack also said the speed data would not be used to punish motorists for driving too fast as they pass under the gantries.

“I know it’s a thing people are concerned about — ‘I don’t want you to know how fast I was going.’” Pollack said. “We collect the data so we can collect tolls. We are not in the speed-enforcement business.”