PluginProbe ʕ •ᴥ•ʔ
Matomo Analytics – Powerful, Privacy-First Insights for WordPress / 5.10.1
Matomo Analytics – Powerful, Privacy-First Insights for WordPress v5.10.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 / geolocation_settings.php
matomo / classes / WpMatomo / Admin / views Last commit date
access.php 7 months ago adblocker-notice.php 2 months ago advanced_settings.php 10 months ago exclusion_settings.php 4 years ago geolocation_settings.php 2 months ago get_started.php 3 months ago import_wp_statistics.php 2 months ago info.php 3 months ago info_bug_report.php 2 years ago info_help.php 1 year ago info_high_traffic.php 2 years ago info_matomo_desc.php 1 year ago info_multisite.php 3 months ago info_newsletter.php 2 months ago info_shared.php 1 year ago marketplace.php 1 month ago marketplace_setup_wizard.php 3 months ago marketplace_setup_wizard_body.php 1 month ago measurable_settings.php 2 years ago privacy_gdpr.php 4 years ago scheduled_tasks_failures.php 2 months ago settings.php 2 months ago settings_errors.php 4 years ago summary.php 2 months ago systemreport.php 2 months ago tracking.php 4 months ago update_notice_clear_cache.php 2 months ago whats-new-notifications.php 2 months ago
geolocation_settings.php
82 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/matomo
11 */
12
13 use WpMatomo\Admin\GeolocationSettings;
14
15 if ( ! defined( 'ABSPATH' ) ) {
16 exit;
17 }
18 /** @var bool $was_updated */
19 /** @var bool $invalid_format */
20 /** @var string $current_maxmind_license */
21
22 if ( $invalid_format ) { ?>
23 <div class="updated matomo-notice notice error">
24 <p><?php esc_html_e( 'It looks like the MaxMind license key has a wrong format.', 'matomo' ); ?></p>
25 </div>
26 <?php
27 }
28 ?>
29
30 <form method="post">
31 <?php wp_nonce_field( GeolocationSettings::NONCE_NAME ); ?>
32
33 <p>
34 <?php esc_html_e( 'On this page you can configure how Matomo detects the locations of your visitors.', 'matomo' ); ?>
35 </p>
36 <p>
37 <?php esc_html_e( 'To detect the location of a visitor, the IP address of a visitor is looked up in a so called geolocation database. This is automatically taken care of for you. However, the freely available database DB-IP we are using is sometimes less accurate than other freely available geolocation databases. This applies to the free and paid version of DB-IP. An alternative geolocation database is called MaxMind which has a free and a paid version as well. Because of GDPR we cannot configure this database automatically for you.', 'matomo' ); ?>
38 <br><br>
39 <?php
40 echo sprintf(
41 esc_html__( 'To use MaxMind instead of the default DB-IP geolocation database %1$s get a MaxMind license key%2$s and then configure this key below.', 'matomo' ),
42 '<a target="_blank" rel="noreferrer noopener" href="https://matomo.org/faq/how-to/how-do-i-get-a-license-key-for-the-maxmind-geolocation-database/">',
43 '</a>'
44 );
45 ?>
46 </p>
47
48 <table class="matomo-tracking-form widefat">
49 <tbody>
50 <tr>
51 <th scope="row" style="vertical-align: top;">
52 <label for="<?php echo esc_attr( GeolocationSettings::FORM_NAME ); ?>"><?php esc_html_e( 'MaxMind License Key', 'matomo' ); ?></label>:
53 </th>
54 <td>
55 <input size="40" type="text" maxlength="50"
56 id="<?php echo esc_attr( GeolocationSettings::FORM_NAME ); ?>"
57 name="<?php echo esc_attr( GeolocationSettings::FORM_NAME ); ?>"
58 value="<?php echo esc_attr( $current_maxmind_license ); ?>">
59 </td>
60 <td>
61 <?php if ( ! empty( $current_maxmind_license ) ) { ?>
62 <p style="color: green;"><span
63 class="dashicons dashicons-yes"></span> <?php esc_html_e( 'MaxMind is configured.', 'matomo' ); ?>
64 </p>
65 <?php } ?>
66 <p>
67 <?php esc_html_e( 'Leave the field empty and click on "Save Changes" to configure the default DB-IP database.', 'matomo' ); ?>
68 <?php esc_html_e( 'When configured, your WordPress will send an HTTP request to a MaxMind server to download an approx. 60MB database and store it in your "wp-content/uploads/matomo" directory.', 'matomo' ); ?>
69 </p>
70 </td>
71 </tr>
72 <tr>
73 <td colspan="3">
74 <p class="submit"><input name="Submit" type="submit" class="button-primary"
75 value="<?php echo esc_attr__( 'Save Changes', 'matomo' ); ?>"/></p>
76 </td>
77 </tr>
78
79 </tbody>
80 </table>
81 </form>
82