access.php
4 years ago
advanced_settings.php
4 years ago
exclusion_settings.php
4 years ago
geolocation_settings.php
4 years ago
get_started.php
4 years ago
import_wp_statistics.php
4 years ago
info.php
4 years ago
info_bug_report.php
4 years ago
info_help.php
4 years ago
info_high_traffic.php
4 years ago
info_multisite.php
4 years ago
info_newsletter.php
4 years ago
info_shared.php
4 years ago
marketplace.php
4 years ago
privacy_gdpr.php
4 years ago
settings.php
4 years ago
settings_errors.php
4 years ago
summary.php
4 years ago
systemreport.php
3 years ago
tracking.php
3 years ago
update_notice_clear_cache.php
5 years ago
info_multisite.php
72 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 | */ |
| 9 | |
| 10 | use WpMatomo\Settings; |
| 11 | |
| 12 | if ( ! defined( 'ABSPATH' ) ) { |
| 13 | exit; |
| 14 | } |
| 15 | |
| 16 | /** @var Settings $settings */ |
| 17 | ?> |
| 18 | |
| 19 | <div class="wrap"> |
| 20 | <div id="icon-plugins" class="icon32"></div> |
| 21 | <h1><?php esc_html_e( 'Matomo Analytics in Multi Site mode', 'matomo' ); ?></h1> |
| 22 | <?php require 'info_newsletter.php'; ?> |
| 23 | <p><?php esc_html_e( 'You are seeing this page as you are viewing the network admin. Matomo differentiates between two different multi site modes:', 'matomo' ); ?></p> |
| 24 | <h2><?php esc_html_e( 'Matomo is network enabled', 'matomo' ); ?></h2> |
| 25 | <p><?php esc_html_e( 'In this mode, the tracking and access settings are managed in the network admin in one place and apply to all sites.', 'matomo' ); ?> |
| 26 | <?php esc_html_e( 'An administrator of a site cannot view or change these settings.', 'matomo' ); ?> |
| 27 | <br/><br/> |
| 28 | <?php esc_html_e( 'The privacy settings have to be configured per site currently.', 'matomo' ); ?> |
| 29 | </p> |
| 30 | <h2><?php esc_html_e( 'Matomo is not network enabled', 'matomo' ); ?></h2> |
| 31 | <p><?php esc_html_e( 'In this mode, the tracking and access settings are managed by each individual site. They cannot be managed in one central place for all sites. An administrator or any user with the "Matomo super user" role can change these settings.', 'matomo' ); ?> |
| 32 | </p> |
| 33 | <h2><?php esc_html_e( 'Managing many sites?', 'matomo' ); ?></h2> |
| 34 | <p> |
| 35 | <?php |
| 36 | echo sprintf( |
| 37 | esc_html__( |
| 38 | 'If you are managing quite a few sites or have quite a bit of traffic then we recommend installing %1$sMatomo On-Premise%2$s separately outside WordPress (it\'s free as well) and use it in combination with the %3$sWP-Matomo%4$s WordPress plugin. |
| 39 | Your Matomo will then run a lot faster, you can put Matomo on a separate server if needed, and it allows you to make use of additional features such as %5$sRoll-Up Reporting%6$s.', |
| 40 | 'matomo' |
| 41 | ), |
| 42 | '<a href="https://matomo.org/matomo-on-premise/" target="_blank" rel="noreferrer noopener">', |
| 43 | '</a>', |
| 44 | '<a href="https://wordpress.org/plugins/wp-piwik/" target="_blank" rel="noreferrer noopener">', |
| 45 | '</a>', |
| 46 | '<a href="https://plugins.matomo.org/RollUpReporting" target="_blank" rel="noreferrer noopener">', |
| 47 | '</a>' |
| 48 | ); |
| 49 | ?> |
| 50 | |
| 51 | <br/><br/><?php esc_html_e( 'Don\'t want all the hassle of maintaining a Matomo?', 'matomo' ); ?> <a |
| 52 | href="http://matomo.org/start-free-analytics-trial/" rel="noreferrer noopener" |
| 53 | target="_blank"><?php esc_html_e( 'Sign up for a free Matomo Cloud trial', 'matomo' ); ?></a>. <?php esc_html_e( 'We can migrate all your data onto our Cloud for free. 100% data ownership guaranteed.', 'matomo' ); ?> |
| 54 | </p> |
| 55 | |
| 56 | <h2><?php esc_html_e( 'Matomo sites', 'matomo' ); ?></h2> |
| 57 | <ul class="matomo-list"> |
| 58 | <?php |
| 59 | if ( function_exists( 'get_sites' ) ) { |
| 60 | foreach ( get_sites() as $matomo_site ) { |
| 61 | /** @var WP_Site $matomo_site */ |
| 62 | switch_to_blog( $matomo_site->blog_id ); |
| 63 | if ( function_exists( 'is_plugin_active' ) && is_plugin_active( 'matomo/matomo.php' ) ) { |
| 64 | echo '<li><a href="' . esc_url( admin_url( 'admin.php?page=matomo-reporting' ) ) . '">' . esc_html( $matomo_site->blogname ) . ' (Site ID: ' . esc_html( $matomo_site->blog_id ) . ')</a></li>'; |
| 65 | } |
| 66 | restore_current_blog(); |
| 67 | } |
| 68 | } |
| 69 | ?> |
| 70 | </ul> |
| 71 | </div> |
| 72 |