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)
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)
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)
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)