PluginProbe ʕ •ᴥ•ʔ
ShareThis Dashboard for Google Analytics / 3.2.4
ShareThis Dashboard for Google Analytics v3.2.4
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 / templates / ga4-demographic-chart.php
googleanalytics / view / templates Last commit date
sidebar 3 years ago appearance.php 4 years ago date-custom-range-filter.php 4 years ago demo-popup.php 4 years ago demographic-chart.php 4 years ago demographic.php 4 years ago exclusions.php 4 years ago ga4-dashboard.php 3 years ago ga4-demographic-chart.php 3 years ago gdpr-config.php 4 years ago gdpr.php 4 years ago purposes.php 4 years ago
ga4-demographic-chart.php
89 lines
1 <?php
2 /**
3 * Demographic Chart view.
4 *
5 * @package GoogleAnalytics
6 */
7 ?>
8 <?php if ( false === $ga4_demo_enabled ) : ?>
9 <div class="demo-ad ga-panel ga-panel-default" style="margin-top: 2rem; width:100%; max-width:1210px;">
10 <div class="ga-panel-heading">
11 <strong>
12 <?php esc_html_e( 'Get Demographic Data!', 'googleanalytics' ); ?>
13 <button id="demographic-popup">
14 <?php esc_html_e( 'Click Here To Enable', 'googleanalytics' ); ?>
15 </button>
16 </strong>
17 </div>
18 <img src="<?php echo esc_url( trailingslashit( get_home_url() ) . 'wp-content/plugins/googleanalytics/assets/images/demographics-ad.png' ); ?>"/>
19 </div>
20 <?php elseif (true === empty($gender_count_data)) : ?>
21 <div class="demo-ad ga-panel ga-panel-default" style="margin-top: 2rem; width:100%; max-width:1210px;">
22 <div class="ga-panel-heading">
23 <strong>
24 <?php
25 esc_html_e(
26 "If no demographics data is shown, you'll most likely need to do one of the following:",
27 'googleanalytics'
28 );
29 ?>
30 <br>
31 <ol>
32 <li>
33 <?php esc_html_e(
34 'Enable "Demographics" within Google Analytics.',
35 'googleanalytics'
36 ); ?>
37 </li>
38 <li>
39 <?php
40 esc_html_e(
41 'If you just enabled this feature, it may require a refresh prior to seeing data.',
42 'googleanalytics'
43 );
44 ?>
45 </li>
46 <li>
47 <?php
48 esc_html_e(
49 'Wait until there\'s sufficient Demographic data to display.',
50 'googleanalytics'
51 );
52 ?>
53 </li>
54 </ol>
55 </strong>
56 </div>
57 </div>
58 <?php else : ?>
59 <div class="demo-ad ga-panel ga-panel-default" style="width:100%; max-width:1210px; margin-top: 2rem;">
60 <div class="ga-panel-heading">
61 <strong>
62 <?php esc_html_e( 'Demographic by users' ); ?>
63 </strong>
64 </div>
65 <div class="ga-demo-chart">
66 <div class="ga-panel-body ga-chart gender">
67 <div id="ga4_demo_chart_gender_div" style="width: 100%;"></div>
68 <div class="ga-loader-wrapper stats-page">
69 <div class="ga-loader stats-page-loader"></div>
70 </div>
71 </div>
72 <div class="ga-panel-body ga-chart age">
73 <div id="ga4_demo_chart_age_div" style="width: 100%;"></div>
74 <div class="ga-loader-wrapper stats-page">
75 <div class="ga-loader stats-page-loader"></div>
76 </div>
77 </div>
78 </div>
79 <div class="ga-panel-body ga-chart device" style="max-width: 550px;">
80 <div id="demo_ga4_chart_device_div" style="width: 100%;"></div>
81 <div class="ga-loader-wrapper stats-page">
82 <div class="ga-loader stats-page-loader"></div>
83 </div>
84 </div>
85 </div>
86 <hr>
87 <?php
88 endif;
89