|
@@ -299,13 +299,34 @@ class IndexController extends \app\controllers\HomeController
|
|
'users'=>"ga:users",
|
|
'users'=>"ga:users",
|
|
'newUsers'=>"ga:newUsers",
|
|
'newUsers'=>"ga:newUsers",
|
|
'bounceRate'=>"ga:bounceRate",
|
|
'bounceRate'=>"ga:bounceRate",
|
|
- 'goal3Completions'=>"ga:goal3Completions",
|
|
|
|
- 'goal3ConversionRate'=>"ga:goal3ConversionRate",
|
|
|
|
- 'goal7Completions'=>"ga:goal7Completions",
|
|
|
|
- 'goal7ConversionRate'=>"ga:goal7ConversionRate",
|
|
|
|
|
|
+ // 'goal3Completions'=>"ga:goal3Completions",
|
|
|
|
+ // 'goal3ConversionRate'=>"ga:goal3ConversionRate",
|
|
|
|
+ // 'goal7Completions'=>"ga:goal7Completions",
|
|
|
|
+ // 'goal7ConversionRate'=>"ga:goal7ConversionRate",
|
|
'transactionRevenue'=>"ga:transactionRevenue",
|
|
'transactionRevenue'=>"ga:transactionRevenue",
|
|
'revenuePerTransaction'=>"ga:revenuePerTransaction",
|
|
'revenuePerTransaction'=>"ga:revenuePerTransaction",
|
|
];
|
|
];
|
|
|
|
+ switch($store){
|
|
|
|
+ case "1"://supernovahair
|
|
|
|
+ $VIEW_ID="155703065";
|
|
|
|
+ break;
|
|
|
|
+ case "2"://asteriahair
|
|
|
|
+ $VIEW_ID="162723112";
|
|
|
|
+ break;
|
|
|
|
+ case "3"://alipearlhair
|
|
|
|
+ $metricArr['cartCompletions']="ga:goal3Completions";
|
|
|
|
+ $metricArr['cartConversionRate']="ga:goal3ConversionRate";
|
|
|
|
+ $metricArr['orderCompletions']="ga:goal7Completions";
|
|
|
|
+ $metricArr['orderConversionRate']="ga:goal7ConversionRate";
|
|
|
|
+ break;
|
|
|
|
+ case "5"://yolissahair
|
|
|
|
+ $VIEW_ID="157127813";
|
|
|
|
+ break;
|
|
|
|
+ case "6"://wiggins
|
|
|
|
+ $VIEW_ID="154631720";
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
$start_day=$request->get('start', date('Y-m-d',time()-3600*24*8));
|
|
$start_day=$request->get('start', date('Y-m-d',time()-3600*24*8));
|
|
$end_day = $request->get('end', date('Y-m-d',time()-3600*24));
|
|
$end_day = $request->get('end', date('Y-m-d',time()-3600*24));
|