sidebar
4 years ago
appearance.php
5 years ago
date_custom_range_filter.php
4 years ago
demo-popup.php
5 years ago
demographic-chart.php
4 years ago
demographic.php
5 years ago
exclusions.php
5 years ago
gdpr-config.php
4 years ago
gdpr.php
5 years ago
purposes.php
5 years ago
demographic-chart.php
78 lines
| 1 | <?php if(!$demo_enabled) : ?> |
| 2 | <div class="demo-ad ga-panel ga-panel-default"> |
| 3 | <div class="ga-panel-heading"> |
| 4 | <strong> |
| 5 | <?php esc_html_e('Get Demographic Data!'); ?> |
| 6 | <button id="demographic-popup"> |
| 7 | <?php esc_html_e('Click Here To Enable', 'googleanalytics'); ?> |
| 8 | </button> |
| 9 | </strong> |
| 10 | </div> |
| 11 | <img src="<?php echo trailingslashit(get_home_url()) . 'wp-content/plugins/googleanalytics/assets/images/demographics-ad.png'; ?>"/> |
| 12 | </div> |
| 13 | <?php elseif ($need_account_demo_enable) : ?> |
| 14 | <div class="demo-ad ga-panel ga-panel-default"> |
| 15 | <div class="ga-panel-heading"> |
| 16 | <strong> |
| 17 | <?php esc_html_e( |
| 18 | "If no demographics data is shown, you'll most likely need to do one of the following:", |
| 19 | 'googleanalytics' |
| 20 | ); ?> |
| 21 | <br> |
| 22 | <ol> |
| 23 | <li><?php esc_html_e('Enable "Demographics" within Google Analytics.', 'googleanalytics'); ?></li> |
| 24 | <li><?php esc_html_e('If you just enabled this feature, it may require a refresh prior to seeing data.', |
| 25 | 'googleanalytics'); ?></li> |
| 26 | <li><?php esc_html_e('Wait until there\'s sufficient Demographic data to display.', |
| 27 | 'googleanalytics'); ?></li> |
| 28 | </ol> |
| 29 | |
| 30 | <a href="<?php echo esc_url($demographic_page_url); ?>/" class="view-report" target="_blank"> |
| 31 | <?php echo esc_html__('Go to my account', 'googleanalytics'); ?> |
| 32 | </a> |
| 33 | </strong> |
| 34 | </div> |
| 35 | </div> |
| 36 | <?php else: ?> |
| 37 | <div class="filter-choices"> |
| 38 | <?php Ga_Template::load( 'templates/date_custom_range_filter', [ |
| 39 | 'date_from' => $date_range['from'], |
| 40 | 'date_to' => $date_range['to'] |
| 41 | ] ); ?> |
| 42 | </div> |
| 43 | <div class="demo-ad ga-panel ga-panel-default"> |
| 44 | <div class="ga-panel-heading"> |
| 45 | <strong> |
| 46 | <?php esc_html_e('Demographic by sessions'); ?> |
| 47 | </strong> |
| 48 | </div> |
| 49 | <div class="ga-demo-chart"> |
| 50 | <div class="ga-panel-body ga-chart gender"> |
| 51 | <div id="demo_chart_gender_div" style="width: 100%;"></div> |
| 52 | <div class="ga-loader-wrapper stats-page"> |
| 53 | <div class="ga-loader stats-page-loader"></div> |
| 54 | </div> |
| 55 | </div> |
| 56 | <div class="ga-panel-body ga-chart gender"> |
| 57 | <div id="demo_chart_age_div" style="width: 100%;"></div> |
| 58 | <div class="ga-loader-wrapper stats-page"> |
| 59 | <div class="ga-loader stats-page-loader"></div> |
| 60 | </div> |
| 61 | </div> |
| 62 | </div> |
| 63 | <div class="ga-demo-chart"> |
| 64 | <div class="ga-panel-body ga-chart device"> |
| 65 | <div id="demo_chart_device_div" style="width: 100%;"></div> |
| 66 | <div class="ga-loader-wrapper stats-page"> |
| 67 | <div class="ga-loader stats-page-loader"></div> |
| 68 | </div> |
| 69 | </div> |
| 70 | </div> |
| 71 | </div> |
| 72 | <a href="<?php echo esc_url( $demographic_page_url ); ?>/" class="view-report" target="_blank"> |
| 73 | <?php echo esc_html__('View Full Report' ); ?> |
| 74 | </a> |
| 75 | <hr> |
| 76 | <?php |
| 77 | endif; |
| 78 |