Calculating beta from regression

I know beta is the slop of the regression of the stock’s return vs the market. When you are looking at returns is it the holding period return each year (which would include dividends) or is it based entirely on the stock price?

Considering most of the data being used is not including dividends you would only be estimating Price variation