Пример #1
0
 def __init__(self, date_start, date_end):
     self.plotter = pygal.PygalPlot()
     dates=[(date_start, date_end)]
     dimensions=['ga:date', 'ga:city', 'ga:country', 'ga:continent']
     metrics=['ga:users', 'ga:newUsers', 'ga:sessions', 'ga:hits' ]
     # there are no blanks to backfill so set blanks to False in super call
     super().__init__(dates, metrics, dimensions)
Пример #2
0
 def __init__(self, date_start, date_end):
     self.plotter = pygal.PygalPlot()
     dates = [(date_start, date_end)]
     dimensions = ['ga:date', 'ga:month']
     metrics = [
         'ga:users', 'ga:newUsers', 'ga:pageViews',
         'ga:pageViewsPerSession', 'ga:sessions', 'ga:sessionDuration'
     ]
     super().__init__(dates, metrics, dimensions, True)
Пример #3
0
 def __init__(self, date_start, date_end):
     self.plotter = pygal.PygalPlot()
     dates = [(date_start, date_end)]
     dimensions = [
         'ga:browser', 'ga:language', 'ga:operatingSystem', 'ga:continent'
     ]
     metrics = ['ga:hits', 'ga:sessions']
     # there are no blanks to backfill so set blanks to False in super call
     super().__init__(dates, metrics, dimensions, False)
Пример #4
0
 def __init__(self, date_start, date_end):
     self.plotter = pygal.PygalPlot()
     dates = [(date_start, date_end)]
     dimensions = [
         'ga:pagePath', 'ga:fullReferrer', 'ga:landingPagePath',
         'ga:exitPagePath'
     ]
     metrics = ['ga:hits', 'ga:sessions']
     # there are no blanks to backfill so set blanks to False in super call
     super().__init__(dates, metrics, dimensions, False)