Any NFL game not broadcast on an OTA network (ESPN, Amazon, NFL Network) is shown on an OTA station in the two cities involved (also in Milwaukee for Green Bay games). These numbers are, and always have been, included in the ratings as cited in all media reports.
Fun fact. We always say that ESPN belongs to Disney, but really Disney only owns 80% of it. Hearst Television owns the rest, but has no say in how it is run, it just gets a check for 20% of the profit every year. Except it has one clause in its contract. Anything ESPN has to show on OTA TV, which in modern times is only MNF, if Hearst has a station in that town they, get first refusal on showing the ESPN games. They own stations in the NFL cities of Tampa, New Orleans, Baltimore, Boston, Kansas City, Cincinnati, Pittsburgh, and Milwaukee.
This practice has always seemed unfair. For example, a Bengals fan in Cincinnati would get the non-OTA games on a local OTA channel, but fans in places like Dayton, Columbus or Lexington would not.