appinsights_main_charts( $component_id, $period, $from, $to, $query ); if (! $appinsights_statsdata) { echo '

' . __ ( "No stats available.", 'appinsights' ) . '

' . get_submit_button ( __ ( "Change settings", 'appinsights' ), 'secondary' ) . '
'; return; } $appinsights_bottom_stats = $AppInsights_API->appinsights_bottom_stats( $component_id, $period, $from, $to ); if (! $appinsights_bottom_stats) { echo '

' . __ ( "No Bottam stats available.", 'appinsights' ) . '

' . get_submit_button ( __ ( "Change settings", 'appinsights' ), 'secondary' ) . '
'; return; } ?>
Usage Analatics
"Key eq 'F'", "metrics" => "context.location.continent", "key" => "context.data.isSynthetic" ), array( "filter_experession" => "Key eq 'F' or Key eq null", "metrics" => "context.location.country", "key" => "context.data.isSynthetic" ), array( "filter_experession" => "Key eq 'F'", "metrics" => "context.location.province", "key" => "context.data.isSynthetic" ), array( "filter_experession" => "Key eq 'F'", "metrics" => "context.location.city", "key" => "context.data.isSynthetic" ), array( "filter_experession" => "Key eq 'F'", "metrics" => "context.device.browser", "key" => "context.data.isSynthetic" ), array( "filter_experession" => "Key eq 'F'", "metrics" => "context.device.osVersion", "key" => "context.data.isSynthetic" ), array( "filter_experession" => "Key eq 'F'", "metrics" => "sessionMetric.exitUrl", "key" => "context.data.isSynthetic" ), array( "filter_experession" => "Key eq 'F'", "metrics" => "sessionMetric.entryUrl", "key" => "context.data.isSynthetic" ), array( "filter_experession" => "Key eq 'F'", "metrics" => "sessionMetric.pageBounceActivity", "key" => "context.data.isSynthetic" ) ); $metrics[] = array( 'Metric' => $metric, 'ApplyFunction' => 'Cardinality' ); /* this section display the data which is statitics */ echo '
*Unique count of '.$extra_title.' by
'; for ( $i = 0, $j = 0; $i < count( $data ); $i++ ) { $appinsights_extra_statsdata = $AppInsights_API->appinsights_extra_stats( $component_id, $period, $from, $to, $metrics, $data[$i]); if(count($appinsights_extra_statsdata)) { echo "
"; foreach($appinsights_extra_statsdata as $key) { echo ""; } echo '
".$name[$i]."Unique Count
".$key['key']."".$key['value']."
'; $j++; if($j % 2 == 0) echo '
'; } } echo '

'; } ?>