def date_for_analytics
        earliest = Hyrax.config.analytic_start_date
        date_uploaded = string_to_date(model.date_uploaded)
        date_analytics = date_uploaded ? date_uploaded : model.create_date
        return date_analytics if earliest.blank?
        earliest > date_analytics ? earliest : date_analytics
      end
def date_for_analytics
        earliest = Hyrax.config.analytic_start_date
        date_uploaded = string_to_date(model.date_uploaded)
        date_analytics = date_uploaded ? date_uploaded : model.create_date
        return date_analytics if earliest.blank?
        earliest > date_analytics ? earliest : date_analytics
      end
model.date_uploaded reflects the date the object was uploaded by the user
 and therefore (if available) the date that we want to use for the stats
 model.create_date reflects the date the file was added to Fedora. On data
 migrated from one repository to another the created_date can be later
 than the date the file was uploaded.