code/panels/DashboardGoogleAnalyticsPanel.php
public function getConfiguration() {
		$fields = parent::getConfiguration();
		if(!$this->isValid()) {
			$fields->push(LiteralField::create("warning",_t('Dashboard.NOGOOGLEACCOUNT','<p>You have not configured a valid Google Analytics account.</p>')));
			return $fields;

		}

		$pages = $this->getHierarchy(0);
		$fields->push(OptionsetField::create("PathType",_t('Dashboard.FILTERBYPAGE','Filter'),array(
				'none' => _t('Dashboard.NONESHOWALL','No filter. Show analytics for the entire site'),
				'list' => _t('Dashboard.PAGEINLIST','Filter by a specific page in the tree'),
				'custom' => _t('Dashboard.ACUSTOMPATH','Filter by a specific path')
			)));
		$fields->push(DropdownField::create("SubjectPageID",'',$pages)
			->addExtraClass('no-chzn')
			->setEmptyString("-- " . _t('Dashboard.PLEASESELECT','Please select')." --")
		);
		$fields->push(TextField::create("CustomPath", '')
			->setAttribute('placeholder','e.g. /about-us/contact')
		);
		$fields->push(DropdownField::create("DateFormat",_t('Dashboard.DATEFORMAT','Date format'),array(
				'dmy' => date('j M, Y'),
				'mdy' => date('M j, Y')
			))
			->addExtraClass('no-chzn')
		);
		$fields->push(DropdownField::create("DateRange", _t('Dashboard.DATERANGE','Date range'),array(
				'day' => _t('Dashboard.TODAY','Today'),
				'week' => _t('Dashboard.PREVIOUSSEVENDAYS','7 days'),
				'month' => _t('Dashboard.PREVIOUSTHIRTYDAYS','30 days'),
				'year' => _t('Dashboard.PREVIOUSYEAR','365 days')
			))
			->addExtraClass('no-chzn')
		);
		return $fields;

	}
public function getConfiguration() {
		$fields = parent::getConfiguration();
		if(!$this->isValid()) {
			$fields->push(LiteralField::create("warning",_t('Dashboard.NOGOOGLEACCOUNT','<p>You have not configured a valid Google Analytics account.</p>')));
			return $fields;

		}

		$pages = $this->getHierarchy(0);
		$fields->push(OptionsetField::create("PathType",_t('Dashboard.FILTERBYPAGE','Filter'),array(
				'none' => _t('Dashboard.NONESHOWALL','No filter. Show analytics for the entire site'),
				'list' => _t('Dashboard.PAGEINLIST','Filter by a specific page in the tree'),
				'custom' => _t('Dashboard.ACUSTOMPATH','Filter by a specific path')
			)));
		$fields->push(DropdownField::create("SubjectPageID",'',$pages)
			->addExtraClass('no-chzn')
			->setEmptyString("-- " . _t('Dashboard.PLEASESELECT','Please select')." --")
		);
		$fields->push(TextField::create("CustomPath", '')
			->setAttribute('placeholder','e.g. /about-us/contact')
		);
		$fields->push(DropdownField::create("DateFormat",_t('Dashboard.DATEFORMAT','Date format'),array(
				'dmy' => date('j M, Y'),
				'mdy' => date('M j, Y')
			))
			->addExtraClass('no-chzn')
		);
		$fields->push(DropdownField::create("DateRange", _t('Dashboard.DATERANGE','Date range'),array(
				'day' => _t('Dashboard.TODAY','Today'),
				'week' => _t('Dashboard.PREVIOUSSEVENDAYS','7 days'),
				'month' => _t('Dashboard.PREVIOUSTHIRTYDAYS','30 days'),
				'year' => _t('Dashboard.PREVIOUSYEAR','365 days')
			))
			->addExtraClass('no-chzn')
		);
		return $fields;

	}
Gets the configuration FieldList for this panel

@return FieldList