コード例 #1
0
 function __construct()
 {
     $this->setName('goalAbandonRateAll');
     $this->setLabel('Goal Abandonment Rate');
     $this->setChildMetric('goalCompletionsAll');
     $this->setChildMetric('goalStartsAll');
     $this->setFormula('goalStartsAll / goalCompletionsAll');
     $this->setDataType('percentage');
     return parent::__construct();
 }
コード例 #2
0
 function __construct()
 {
     $this->setName('ecommerceConversionRate');
     $this->setLabel('Ecommerce Conversion Rate');
     $this->setChildMetric('visits');
     $this->setChildMetric('transactions');
     $this->setFormula('transactions / visits');
     $this->setDataType('percentage');
     return parent::__construct();
 }
コード例 #3
0
 function __construct()
 {
     $this->setName('bounceRate');
     $this->setLabel('Bounce Rate');
     $this->setChildMetric('bounces');
     $this->setChildMetric('visits');
     $this->setFormula('bounces / visits');
     $this->setDataType('percentage');
     return parent::__construct();
 }
コード例 #4
0
 function __construct()
 {
     $this->setName('revenuePerVisit');
     $this->setLabel('Revenue Per Visit');
     $this->setChildMetric('transactionRevenue');
     $this->setChildMetric('visits');
     $this->setFormula('transactionRevenue / visits');
     $this->setDataType('currency');
     return parent::__construct();
 }
コード例 #5
0
 function __construct()
 {
     $this->setName('pagesPerVisit');
     $this->setLabel('Pages Per Visit');
     $this->setChildMetric('pageViews');
     $this->setChildMetric('visits');
     $this->setFormula('round(pageViews / visits, 2)');
     $this->setDataType('decimal');
     return parent::__construct();
 }
コード例 #6
0
 function __construct()
 {
     $this->setName('actionsPerVisit');
     $this->setLabel('Actions / Visit');
     $this->setChildMetric('actions');
     $this->setChildMetric('visits');
     $this->setFormula('round(actions / visits, 1)');
     $this->setDataType('decimal');
     return parent::__construct();
 }
コード例 #7
0
 function __construct()
 {
     $this->setName('goalConversionRateAll');
     $this->setLabel('Goal Conversion Rate');
     $this->setChildMetric('visits');
     $this->setChildMetric('goalCompletionsAll');
     $this->setFormula('goalCompletionsAll / visits');
     $this->setDataType('percentage');
     return parent::__construct();
 }
コード例 #8
0
 function __construct()
 {
     $this->setName('revenuePerTransaction');
     $this->setLabel('Avg. Transaction Value');
     $this->setChildMetric('transactionRevenue');
     $this->setChildMetric('transactions');
     $this->setFormula('transactionRevenue / transactions');
     $this->setDataType('currency');
     return parent::__construct();
 }