PluginProbe ʕ •ᴥ•ʔ
Matomo Analytics – Powerful, Privacy-First Insights for WordPress / 5.8.2
Matomo Analytics – Powerful, Privacy-First Insights for WordPress v5.8.2
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 / get_started.php
matomo / classes / WpMatomo / Admin / views Last commit date
access.php 6 months ago adblocker-notice.php 6 months ago advanced_settings.php 10 months ago exclusion_settings.php 4 years ago geolocation_settings.php 2 years ago get_started.php 2 months ago import_wp_statistics.php 2 months ago info.php 2 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 2 months ago info_newsletter.php 4 years ago info_shared.php 1 year ago marketplace.php 3 months ago marketplace_setup_wizard.php 3 months ago marketplace_setup_wizard_body.php 3 months ago measurable_settings.php 2 years ago privacy_gdpr.php 4 years ago scheduled_tasks_failures.php 2 years 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 5 years ago whats-new-notifications.php 1 year ago
get_started.php
135 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 * phpcs considers all of our variables as global and want them prefixed with matomo
11 * phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
12 */
13 use WpMatomo\Admin\AdminSettings;
14 use WpMatomo\Admin\GetStarted;
15 use WpMatomo\Admin\MarketplaceSetupWizardBody;
16 use WpMatomo\Admin\Menu;
17 use WpMatomo\Admin\TrackingSettings;
18 use WpMatomo\Settings;
19
20 if ( ! defined( 'ABSPATH' ) ) {
21 exit;
22 }
23
24 /** @var Settings $settings */
25 /** @var bool $can_user_edit */
26 /** @var bool $was_updated */
27 /** @var bool $show_this_page */
28 /** @var MarketplaceSetupWizardBody $matomo_marketplace_setup_wizard_body */
29 /** @var bool $matomo_is_marketplace_active */
30
31 if ( empty( $show_this_page ) ) {
32 echo '<meta http-equiv="refresh" content="0;url=' . esc_attr( menu_page_url( Menu::SLUG_REPORT_SUMMARY, false ) ) . '" />';
33 }
34
35 if ( $was_updated ) {
36 include 'update_notice_clear_cache.php';
37 }
38 ?>
39
40 <p>
41 <?php require 'info_matomo_desc.php'; ?>
42 </p>
43
44 <hr/>
45
46 <h1 style="font-size:1.4em">
47 <?php esc_html_e( 'To start getting relevant reports and insights, complete these steps:', 'matomo' ); ?>
48 </h1>
49
50 <h2>1. <?php esc_html_e( 'Update your privacy page and review consent requirements', 'matomo' ); ?></h2>
51
52 <p>
53 <?php
54 echo sprintf(
55 esc_html__( 'Before tracking any data, consider how you will respect your users’ privacy and comply with applicable laws, such as %1$sthe GDPR, ePrivacy Directive (and national implementations)%2$s, or other privacy regulations that apply to you.', 'matomo' ),
56 '<a href="https://matomo.org/faq/new-to-piwik/is-matomo-analytics-gdpr-compliant/" rel="noreferrer noopener" target="_blank">',
57 '</a>'
58 );
59 ?>
60 </p>
61
62 <p>
63 <?php
64 echo sprintf(
65 esc_html__( 'Depending on your configuration and the laws applicable to your website, you may be required to obtain %1$sprior consent%2$s before collecting your website analytics data.', 'matomo' ),
66 '<strong>',
67 '</strong>'
68 );
69 ?>
70 </p>
71
72 <p>
73 <?php esc_html_e( 'If you are permitted to track without prior consent, you may still need to provide a method to opt out of tracking.', 'matomo' ); ?>
74 <?php
75 echo sprintf(
76 esc_html__( 'Add the shortcode %1$s to your privacy page or insert the %2$sMatomo opt-out%3$s block.', 'matomo' ),
77 '<code>[matomo_opt_out]</code>',
78 '<strong>',
79 '</strong>'
80 );
81 ?>
82 <?php
83 echo sprintf(
84 esc_html__( 'Read how to customise and configure the opt-out configuration in %1$sPrivacy Settings%2$s.', 'matomo' ),
85 '<a href="https://matomo.org/faq/general/faq_20000/" target="_blank" rel="noreferrer noopener">',
86 '</a>'
87 );
88 ?>
89 </p>
90
91 <p>
92 <?php
93 echo sprintf(
94 esc_html__( 'The use of Matomo Analytics should be disclosed in your %1$swebsite’s privacy notice%2$s and, if applicable, in your cookie notice.', 'matomo' ),
95 '<a href="https://matomo.org/faq/how-to/how-to-write-a-gdpr-compliant-privacy-notice/" target="_blank" rel="noreferrer noopener">',
96 '</a>'
97 );
98 ?>
99 </p>
100
101 <?php if ( $settings->is_tracking_enabled() ) { ?>
102 <h2>
103 2. <?php esc_html_e( 'Tracking is enabled', 'matomo' ); ?> <span class="dashicons dashicons-yes" style="color: green;"></span>
104 </h2>
105 <p><?php esc_html_e( 'Tracking should be working now and you don\'t have to do anything else to set up tracking.', 'matomo' ); ?>
106 <a href="<?php echo esc_url( AdminSettings::make_url( AdminSettings::TAB_TRACKING ) ); ?>"><?php esc_html_e( 'Click here to optionally configure the tracking code to your liking (not required).', 'matomo' ); ?></a>
107 </p>
108 <?php } else { ?>
109 <h2>2. <?php esc_html_e( 'Enable tracking', 'matomo' ); ?></h2>
110
111 <p><?php esc_html_e( 'Enable tracking using the default configuration by clicking this button', 'matomo' ); ?>:</p>
112
113 <form method="post">
114 <?php wp_nonce_field( GetStarted::NONCE_NAME ); ?>
115 <input type="hidden" name="<?php echo esc_attr( GetStarted::FORM_NAME ); ?>[track_mode]"
116 value="<?php echo esc_attr( TrackingSettings::TRACK_MODE_DEFAULT ); ?>">
117 <input type="submit" class="button-primary" id="matomo-enable-tracking" value="<?php esc_html_e( 'Enable tracking now', 'matomo' ); ?>">
118 </form>
119 <?php } ?>
120
121 <h2>
122 3. <?php esc_html_e( 'Setup the Matomo Marketplace', 'matomo' ); ?>
123 <?php if ( $matomo_is_marketplace_active ) { ?>
124 <span class="dashicons dashicons-yes" style="color: green;"></span>
125 <?php } ?>
126 </h2>
127
128 <div style="max-width: 700px;">
129 <?php $matomo_marketplace_setup_wizard_body->show(); ?>
130 </div>
131
132 <p>
133 <br/>
134 </p>
135