@include('shared._pie_chart', [ 'error' => '', 'data' => $data['visitors'], 'title' => "Website Visitors", 'id' => 'visitor_pie_chart']) | @include('shared._pie_chart', [ 'error' => '', 'data' => $data['device_breakdown'], 'title' => "Device Breakdown", 'id' => 'device_breakdown_pie_chart', 'button' => [ 'on_click' => "view_detail_report('".\App\Http\Controllers\ReportingController::GOOGLE_DEVICE_BREAKDOWN."')", 'title' => 'Details', ] ]) |
@foreach([
['title' => 'Visits', 'name' => 'sessions', 'tooltip' => \App\Helpers\TooltipHelper::GOOGLE_ANALYTICS_VISITS],
['title' => 'Visitors', 'name' => 'users', 'tooltip' => \App\Helpers\TooltipHelper::GOOGLE_ANALYTICS_VISITORS],
['title' => 'Pageviews', 'name' => 'page_views', 'tooltip' => \App\Helpers\TooltipHelper::GOOGLE_ANALYTICS_PAGEVIEWS],
['title' => 'Avg. Visit Duration', 'name' => 'avg_session_duration', 'tooltip' => \App\Helpers\TooltipHelper::GOOGLE_ANALYTICS_AVG_VISIT_DURATION],
['title' => 'Bounce Rate', 'name' => 'bounce_rate', 'tooltip' => \App\Helpers\TooltipHelper::GOOGLE_ANALYTICS_BOUNCE_RATE, 'is_percent' => true],
['title' => '% New Visits', 'name' => 'percent_new_sessions', 'tooltip' => \App\Helpers\TooltipHelper::GOOGLE_ANALYTICS_PERCENT_NEW_VISITS, 'is_percent' => true],
] as $item)
@include('reporting._google_traffic_data', $item)
@endforeach
|
|
@foreach([
['click_class' => 'user-flow-click', 'title' => 'Pages / Visits', 'name' => 'pages_per_session', 'tooltip' => \App\Helpers\TooltipHelper::GOOGLE_ANALYTICS_PAGES_PER_VISIT],
] as $item)
@include('reporting._google_traffic_data', $item)
@endforeach
@include('shared._pie_chart', [
'error' => '',
'data' => $data['traffic_origination'],
'title' => "Traffic Origination",
'id' => 'traffic_origination_pie_chart',
'button' => [
'on_click' => 'view_traffic_acquisition_channels_report();',
'title' => 'Details',
]
])
|
@foreach([
['name' => 'country', 'label' => 'Country', 'value' => \App\Helpers\GoogleAnalyticsUserFlow\GoogleAnalyticsUserFlowReportHelper::COUNTRY],
['name' => 'region', 'label' => 'Region', 'value' => \App\Helpers\GoogleAnalyticsUserFlow\GoogleAnalyticsUserFlowReportHelper::REGION],
['name' => 'city', 'label' => 'City', 'value' => \App\Helpers\GoogleAnalyticsUserFlow\GoogleAnalyticsUserFlowReportHelper::CITY],
] as $geography)
@include('shared._pie_chart', [
'error' => '',
'data' => $data['traffic_geography']['by_'.$geography['name']],
'title' => $geography['label'],
'id' => 'traffic_geography_'.$geography['name'].'_pie_chart',
'multiple_views' => [
'class' => $data['traffic_geography']['multiple_view_class'],
'values' => $data['traffic_geography']['multiple_view_values'],
'value' => $geography['value'],
]
])
@endforeach
|