code: def get_ga_tracking_id(self):
          
          if hasattr(settings, self.ga_tracking_id_settings_key):
              return getattr(settings, self.ga_tracking_id_settings_key)
          return super(GARequestErrorReportingMixin, self).get_ga_tracking_id()
docs: Retrieve tracking ID from settings