PluginProbe ʕ •ᴥ•ʔ
ShareThis Dashboard for Google Analytics / 2.0.2
ShareThis Dashboard for Google Analytics v2.0.2
3.3.2 trunk 1.0.7 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.1 2.1.2 2.1.3 2.1.4 2.1.5 2.2.5 2.3.5 2.3.6 2.3.7 2.3.8 2.4.0 2.4.1 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 3.0.0 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.3.0 3.3.1
googleanalytics / view / ga_dashboard_widget.php
googleanalytics / view Last commit date
ga_accounts_selector.php 9 years ago ga_code.php 9 years ago ga_dashboard_widget.php 9 years ago ga_notice.php 9 years ago ga_oauth_notice.php 9 years ago ga_wp_notice.php 9 years ago page.php 9 years ago statistics.php 9 years ago stats.php 9 years ago
ga_dashboard_widget.php
70 lines
1 <div class="wrap ga-wrap">
2
3 <div class="form-group">
4 <select id="range-selector" autocomplete="off">
5 <option value="7daysAgo">Last 7 Days</option>
6 <option value="30daysAgo" selected="selected">Last 30 Days</option>
7 <option value="90daysAgo">Last 90 Days</option>
8 </select>
9
10 <select id="metrics-selector" autocomplete="off">
11 <option value="pageviews">Pageviews</option>
12 <option value="sessions">Visits</option>
13 <option value="users">Users</option>
14 <option value="organicSearches">Organic Search</option>
15 <option value="visitBounceRate">Bounce Rate</option>
16 </select>
17
18 <div class="ga-loader-wrapper">
19 <div class="ga-loader"></div>
20 </div>
21 </div>
22
23 <div>
24 <div id="chart_div" style="width: 100%;"></div>
25 <div>
26 <div id="boxes-container">
27 <div class="ga-box-row">
28 <?php if ( ! empty( $boxes ) ) : ?>
29 <?php $iter = 1; ?>
30 <?php foreach ( $boxes as $k => $v ) : ?>
31 <div class="ga-box-column ga-box-dashboard">
32 <div style="color: grey; font-size: 13px;"
33 id="ga_box_dashboard_label_<?php echo $k; ?>"><?php echo $v['label'] ?></div>
34 <div style="font-size: 15px;"
35 id="ga_box_dashboard_value_<?php echo $k; ?>"><?php echo $v['value'] ?></div>
36 </div>
37 <?php if ( ( ( $iter ++ ) % 3 ) == 0 ) : ?>
38 </div>
39 <div class="ga-box-row">
40 <?php endif; ?>
41 <?php endforeach; ?>
42 <?php endif; ?>
43 </div>
44 </div>
45 </div>
46 </div>
47
48 <div style="margin-top: 5px;"><?php echo sprintf( '<a href="%s">' . __( 'Show more details' ) . '</a>', $more_details_url ); ?></div>
49 </div>
50
51 <script type="text/javascript">
52
53 dataArr = [['Day', 'Pageviews'],<?php
54 if ( $chart ) {
55 $arr = "";
56 foreach ( $chart as $row ) {
57 if ( $arr ) {
58 $arr .= ",";
59 }
60 $arr .= "['" . $row['day'] . "'," . $row['current'] . "]";
61 }
62 }
63 echo $arr;
64 ?>];
65
66 ga_dashboard.init(dataArr);
67 ga_dashboard.events(dataArr);
68
69 </script>
70