analytics
6 years ago
data
5 years ago
dialogs
5 years ago
general
5 years ago
permissions
5 years ago
privacy
5 years ago
recaptcha
5 years ago
unsubscribe
6 years ago
tab-accessibility.php
6 years ago
tab-analytics.php
5 years ago
tab-data.php
6 years ago
tab-general.php
5 years ago
tab-metrics.php
6 years ago
tab-palettes.php
5 years ago
tab-permissions.php
6 years ago
tab-privacy.php
6 years ago
tab-recaptcha.php
6 years ago
tab-unsubscribe.php
6 years ago
tab-metrics.php
150 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Metrics tab. |
| 4 | * |
| 5 | * @package Hustle |
| 6 | * @since 4.0.0 |
| 7 | */ |
| 8 | |
| 9 | ?> |
| 10 | <div id="top-metrics-box" class="sui-box" data-tab="metrics" <?php echo 'metrics' !== $section ? 'style="display: none;"' : ''; ?>> |
| 11 | |
| 12 | <div class="sui-box-header"> |
| 13 | <h2 class="sui-box-title"><?php esc_html_e( 'Top 3 Metrics', 'hustle' ); ?></h2> |
| 14 | </div> |
| 15 | |
| 16 | <form id="hustle-top-metrics-settings-form" class="sui-box-body"> |
| 17 | |
| 18 | <p><?php esc_html_e( 'Choose the top 3 metrics which are most relevant to your goals. These metrics will be visible on the Hustle’s main dashboard area.', 'hustle' ); ?></p> |
| 19 | |
| 20 | <div class="sui-form-field"> |
| 21 | <label for="hustle-metrics-rate" class="sui-checkbox"> |
| 22 | <input type="checkbox" |
| 23 | name="metrics[]" |
| 24 | value="average_conversion_rate" |
| 25 | id="hustle-metrics-rate" |
| 26 | <?php checked( in_array( 'average_conversion_rate', $stored_metrics, true ) ); ?> /> |
| 27 | <span aria-hidden="true" |
| 28 | data-tooltip="<?php esc_html_e( 'You can only select up to 3 metrics', 'hustle' ); ?>"></span> |
| 29 | <span><?php esc_html_e( 'Average Conversion Rate', 'hustle' ); ?></span> |
| 30 | </label> |
| 31 | <span class="sui-description sui-checkbox-description"><?php esc_html_e( 'The average conversion rate is the total number of conversions divided by the total number of views on all the modules.', 'hustle' ); ?></span> |
| 32 | </div> |
| 33 | |
| 34 | <div class="sui-form-field"> |
| 35 | <label for="hustle-metrics-today" class="sui-checkbox"> |
| 36 | <input type="checkbox" |
| 37 | name="metrics[]" |
| 38 | value="today_conversions" |
| 39 | id="hustle-metrics-today" |
| 40 | <?php checked( in_array( 'today_conversions', $stored_metrics, true ) ); ?> /> |
| 41 | <span aria-hidden="true" |
| 42 | data-tooltip="<?php esc_html_e( 'You can only select up to 3 metrics', 'hustle' ); ?>"></span> |
| 43 | <span><?php esc_html_e( "Today's Conversion", 'hustle' ); ?></span> |
| 44 | </label> |
| 45 | <span class="sui-description sui-checkbox-description"><?php esc_html_e( 'The total number of conversions happened today from each module.', 'hustle' ); ?></span> |
| 46 | </div> |
| 47 | |
| 48 | <div class="sui-form-field"> |
| 49 | <label for="hustle-metrics-week" class="sui-checkbox"> |
| 50 | <input type="checkbox" |
| 51 | name="metrics[]" |
| 52 | value="last_week_conversions" |
| 53 | id="hustle-metrics-week" |
| 54 | <?php checked( in_array( 'last_week_conversions', $stored_metrics, true ) ); ?> /> |
| 55 | <span aria-hidden="true" |
| 56 | data-tooltip="<?php esc_html_e( 'You can only select up to 3 metrics', 'hustle' ); ?>"></span> |
| 57 | <span><?php esc_html_e( "Last 7 Day's Conversion", 'hustle' ); ?></span> |
| 58 | </label> |
| 59 | <span class="sui-description sui-checkbox-description"><?php esc_html_e( 'The total number of conversions happened in the last 7 days from each module', 'hustle' ); ?></span> |
| 60 | </div> |
| 61 | |
| 62 | <div class="sui-form-field"> |
| 63 | <label for="hustle-metrics-month" class="sui-checkbox"> |
| 64 | <input type="checkbox" |
| 65 | name="metrics[]" |
| 66 | value="last_month_conversions" |
| 67 | id="hustle-metrics-month" |
| 68 | <?php checked( in_array( 'last_month_conversions', $stored_metrics, true ) ); ?> /> |
| 69 | <span aria-hidden="true" |
| 70 | data-tooltip="<?php esc_html_e( 'You can only select up to 3 metrics', 'hustle' ); ?>"></span> |
| 71 | <span><?php esc_html_e( "Last 1 Month's conversion", 'hustle' ); ?></span> |
| 72 | </label> |
| 73 | <span class="sui-description sui-checkbox-description"><?php esc_html_e( 'The total number of conversions happened in the last month from each module.', 'hustle' ); ?></span> |
| 74 | </div> |
| 75 | |
| 76 | <div class="sui-form-field"> |
| 77 | <label for="hustle-metrics-total" class="sui-checkbox"> |
| 78 | <input type="checkbox" |
| 79 | name="metrics[]" |
| 80 | value="total_conversions" |
| 81 | id="hustle-metrics-total" |
| 82 | <?php checked( in_array( 'total_conversions', $stored_metrics, true ) ); ?> /> |
| 83 | <span aria-hidden="true" |
| 84 | data-tooltip="<?php esc_html_e( 'You can only select up to 3 metrics', 'hustle' ); ?>"></span> |
| 85 | <span><?php esc_html_e( 'Total Conversions', 'hustle' ); ?></span> |
| 86 | </label> |
| 87 | <span class="sui-description sui-checkbox-description"><?php esc_html_e( 'The sum of all the conversion happened up to today from each module.', 'hustle' ); ?></span> |
| 88 | </div> |
| 89 | |
| 90 | <div class="sui-form-field"> |
| 91 | <label for="hustle-metrics-most" class="sui-checkbox"> |
| 92 | <input type="checkbox" |
| 93 | name="metrics[]" |
| 94 | value="most_conversions" |
| 95 | id="hustle-metrics-most" |
| 96 | <?php checked( in_array( 'most_conversions', $stored_metrics, true ) ); ?> /> |
| 97 | <span aria-hidden="true" |
| 98 | data-tooltip="<?php esc_html_e( 'You can only select up to 3 metrics', 'hustle' ); ?>"></span> |
| 99 | <span><?php esc_html_e( 'Most Conversions', 'hustle' ); ?></span> |
| 100 | </label> |
| 101 | <span class="sui-description sui-checkbox-description"><?php esc_html_e( 'The module which has the highest number of conversions.', 'hustle' ); ?></span> |
| 102 | </div> |
| 103 | |
| 104 | <div class="sui-form-field"> |
| 105 | <label for="hustle-metrics-inactive-modules" class="sui-checkbox"> |
| 106 | <input type="checkbox" |
| 107 | name="metrics[]" |
| 108 | value="inactive_modules_count" |
| 109 | id="hustle-metrics-inactive-modules" |
| 110 | <?php checked( in_array( 'inactive_modules_count', $stored_metrics, true ) ); ?> /> |
| 111 | <span aria-hidden="true" |
| 112 | data-tooltip="<?php esc_html_e( 'You can only select up to 3 metrics', 'hustle' ); ?>"></span> |
| 113 | <span><?php esc_html_e( 'Inactive Modules', 'hustle' ); ?></span> |
| 114 | </label> |
| 115 | <span class="sui-description sui-checkbox-description"><?php esc_html_e( 'The total number of modules which are currently inactive. This will include all the drafts and unpublished modules.', 'hustle' ); ?></span> |
| 116 | </div> |
| 117 | |
| 118 | <div class="sui-form-field"> |
| 119 | <label for="hustle-metrics-total-modules" class="sui-checkbox"> |
| 120 | <input type="checkbox" |
| 121 | name="metrics[]" |
| 122 | value="total_modules_count" |
| 123 | id="hustle-metrics-total-modules" |
| 124 | <?php checked( in_array( 'total_modules_count', $stored_metrics, true ) ); ?> /> |
| 125 | <span aria-hidden="true" |
| 126 | data-tooltip="<?php esc_html_e( 'You can only select up to 3 metrics', 'hustle' ); ?>"></span> |
| 127 | <span><?php esc_html_e( 'Total Modules', 'hustle' ); ?></span> |
| 128 | </label> |
| 129 | <span class="sui-description sui-checkbox-description"><?php esc_html_e( 'The total number of modules regardless of their status.', 'hustle' ); ?></span> |
| 130 | </div> |
| 131 | |
| 132 | </form> |
| 133 | |
| 134 | <div class="sui-box-footer"> |
| 135 | <div class="sui-actions-right"> |
| 136 | <div class="sui-tooltip-top-right" data-tooltip="<?php esc_html_e( 'Please select 3 metrics to save settings.', 'hustle' ); ?>"> |
| 137 | <button |
| 138 | class="sui-button sui-button-blue hustle-settings-save" |
| 139 | data-form-id="hustle-top-metrics-settings-form" |
| 140 | data-target="top_metrics" |
| 141 | > |
| 142 | <span class="sui-loading-text"><?php esc_html_e( 'Save Settings', 'hustle' ); ?></span> |
| 143 | <span class="sui-icon-loader sui-loading" aria-hidden="true"></span> |
| 144 | </button> |
| 145 | </div> |
| 146 | </div> |
| 147 | </div> |
| 148 | |
| 149 | </div> |
| 150 |