PluginProbe ʕ •ᴥ•ʔ
Matomo Analytics – Powerful, Privacy-First Insights for WordPress / 1.3.1
Matomo Analytics – Powerful, Privacy-First Insights for WordPress v1.3.1
5.11.1 5.11.0 5.10.2 5.10.1 trunk 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.3.0 1.3.1 1.3.2 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.1.0 4.1.1 4.1.2 4.1.3 4.10.0 4.11.0 4.12.0 4.13.0 4.13.2 4.13.3 4.13.4 4.13.5 4.14.0 4.14.1 4.14.2 4.15.0 4.15.1 4.15.2 4.15.3 4.2.0 4.3.0 4.3.1 4.4.1 4.4.2 4.5.0 4.6.0 5.0.1 5.0.2 5.0.3 5.0.4 5.0.5 5.0.6 5.0.7 5.0.8 5.1.0 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5 5.1.6 5.1.7 5.10.0 5.2.0 5.2.1 5.2.2 5.3.0 5.3.1 5.3.2 5.3.3 5.6.0 5.6.1 5.7.0 5.7.1 5.8.0 5.8.1 5.8.2
matomo / classes / WpMatomo / Admin / views / advanced_settings.php
matomo / classes / WpMatomo / Admin / views Last commit date
access.php 6 years ago advanced_settings.php 5 years ago exclusion_settings.php 6 years ago geolocation_settings.php 6 years ago get_started.php 6 years ago info.php 5 years ago info_bug_report.php 6 years ago info_help.php 5 years ago info_high_traffic.php 6 years ago info_multisite.php 6 years ago info_newsletter.php 6 years ago info_shared.php 6 years ago marketplace.php 5 years ago privacy_gdpr.php 5 years ago settings.php 6 years ago summary.php 5 years ago systemreport.php 6 years ago tracking.php 5 years ago update_notice_clear_cache.php 6 years ago
advanced_settings.php
73 lines
1 <?php
2 /**
3 * Matomo - free/libre analytics platform
4 *
5 * @link https://matomo.org
6 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
7 * @package matomo
8 * Code Based on
9 * @author Andr&eacute; Br&auml;kling
10 * https://github.com/braekling/WP-Matomo
11 *
12 */
13
14 use WpMatomo\Admin\AdvancedSettings;
15
16 if ( ! defined( 'ABSPATH' ) ) {
17 exit;
18 }
19 /** @var bool $was_updated */
20 /** @var string $matomo_detected_ip */
21 /** @var array $matomo_client_headers */
22 ?>
23
24 <?php
25 if ( $was_updated ) {
26 include 'update_notice_clear_cache.php';
27 }
28 ?>
29 <form method="post">
30 <?php wp_nonce_field( AdvancedSettings::NONCE_NAME ); ?>
31
32 <p><?php esc_html_e( 'Advanced settings', 'matomo' ); ?></p>
33 <table class="matomo-tracking-form widefat">
34 <tbody>
35 <tr>
36 <th width="20%" scope="row"><label for="matomo[proxy_client_header]"><?php esc_html_e( 'Proxy IP headers', 'matomo' ) ?>:</label>
37 </th>
38 <td>
39 <?php
40 echo '<span style="white-space: nowrap;display: inline-block;"><input type="radio" ' . ( empty($matomo_client_headers) ? 'checked="checked" ' : '' ) . ' value="REMOTE_ADDR" name="matomo[proxy_client_header]" /> <code>REMOTE_ADDR</code> ' . ( ! empty( $_SERVER[ 'REMOTE_ADDR' ] ) ? esc_html( $_SERVER[ 'REMOTE_ADDR' ] ) : esc_html__( 'No value found', 'matomo' ) ) . ' (' . esc_html__( 'Default', 'matomo' ) .')</span>';
41 foreach ( AdvancedSettings::$valid_host_headers as $host_header ) {
42 echo '<span style="white-space: nowrap;display: inline-block;"><input type="radio" ' . ( in_array( $host_header, $matomo_client_headers, true ) ? 'checked="checked" ' : '' ) . 'value="'. esc_attr($host_header).'" name="matomo[proxy_client_header]" /> <code>' . $host_header . '</code> ' . ( ! empty( $_SERVER[ $host_header ] ) ? ('<strong>'. esc_html( $_SERVER[ $host_header ] ) . '</strong>') : esc_html__( 'No value found', 'matomo' ) ) . ' &nbsp; </span>';
43 }
44 ?>
45 </td>
46 <td width="50%">
47 <?php esc_html_e( 'We detected you have the following IP address:', 'matomo' ) ?>
48 <?php echo esc_html( $matomo_detected_ip ) ?> <br>
49 <?php echo sprintf(esc_html__( 'To compare this value with your actual IP address %1$splease click here%2$s.', 'matomo' ), '<a rel="noreferrer noopener" target="_blank" href="https://matomo.org/ip.php">', '</a>') ?><br><br>
50 <?php esc_html_e( 'Should your IP address not match the above value, your WordPress might be behind a proxy and you may need to select a different HTTP header depending on which of the values on the left shows your correct IP address.', 'matomo' ) ?>
51 </td>
52 </tr>
53 <?php if (!defined('MATOMO_REMOVE_ALL_DATA')) { ?>
54 <tr>
55 <th width="20%" scope="row"><label for="matomo[delete_all_data]"><?php esc_html_e( 'Delete all data on uninstall', 'matomo' ) ?>:</label>
56 </th>
57 <td>
58 <?php
59 echo '<span style="white-space: nowrap;display: inline-block;"><input type="checkbox" ' . ( !empty($matomo_delete_all_data) ? 'checked="checked" ' : '' ) . ' value="1" name="matomo[delete_all_data]" /> '.esc_html__( 'Yes', 'matomo' ).'</span>';
60 ?>
61 </td>
62 <td width="50%">
63 By default, when you uninstall the Matomo plugin, all data is deleted and cannot be restored unless you have backups. When you disable this feature, the tracked data in the database will be kept. This can be useful to prevent accidental deletion of all your historical analytics data when you uninstall the plugin. <a href="https://matomo.org/faq/wordpress/how-do-i-delete-or-reset-the-matomo-for-wordpress-data-completely/" target="_blank" rel="noreferrer noopener">Learn more</a>
64 </td>
65 </tr>
66 <?php } ?>
67 <tr>
68 <td colspan="3"><p class="submit"><input name="Submit" type="submit" class="button-primary"
69 value="<?php esc_attr_e( 'Save Changes', 'matomo' ) ?>"/></p></td>
70 </tr>
71 </tbody>
72 </table>
73 </form>