def search_ctr(start_date, end_date):
 ctr = {}
 request = _build_request()
 date = start_date
 while (date <= end_date):
  date_str = str(date)
  metric_name = 'ga:goal11ConversionRate'
  ctr_str = request.get(ids=('ga:' + profile_id), start_date=date_str, end_date=date_str, metrics=metric_name).execute()['rows'][0][0]
  ctr[date_str] = float(ctr_str)
  date += timedelta(days=1)
 return ctr

def search_ctr ( start_date , end_date ) : ctr = { } request = _build_request ( ) date = start_date while ( date <= end_date ) : date_str = str ( date ) metric_name = 'ga:goal11ConversionRate' ctr_str = request . get ( ids = ( 'ga:' + profile_id ) , start_date = date_str , end_date = date_str , metrics = metric_name ) . execute ( ) [ 'rows' ] [ 0 ] [ 0 ] ctr [ date_str ] = float ( ctr_str ) date += timedelta ( days = 1 ) return ctr
return search click through rate based on goal 11 in google analytics .