PluginProbe ʕ •ᴥ•ʔ
Matomo Analytics – Powerful, Privacy-First Insights for WordPress / 4.15.1
Matomo Analytics – Powerful, Privacy-First Insights for WordPress v4.15.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 / marketplace.php
matomo / classes / WpMatomo / Admin / views Last commit date
access.php 4 years ago advanced_settings.php 4 years ago exclusion_settings.php 4 years ago geolocation_settings.php 2 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
marketplace.php
331 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 if ( ! defined( 'ABSPATH' ) ) {
11 exit;
12 }
13
14 /** @var \WpMatomo\Settings $settings */
15 $matomo_extra_url_params = '&' . http_build_query(
16 [
17 'php' => PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION . '.' . PHP_RELEASE_VERSION,
18 'matomo' => $settings->get_global_option( 'core_version' ),
19 'wp_version' => ! empty( $GLOBALS['wp_version'] ) ? $GLOBALS['wp_version'] : '',
20 ]
21 );
22 ?>
23 <div class="wrap">
24
25 <?php if ( $settings->is_network_enabled() && ! is_network_admin() && is_super_admin() ) { ?>
26 <div class="updated notice">
27 <p><?php esc_html_e( 'Only super users can see this page', 'matomo' ); ?></p>
28 </div>
29 <?php } ?>
30
31 <div id="icon-plugins" class="icon32"></div>
32
33 <h1><?php matomo_header_icon(); ?><?php esc_html_e( 'Discover new functionality for your Matomo', 'matomo' ); ?></h1>
34
35 <?php if ( ! is_plugin_active( MATOMO_MARKETPLACE_PLUGIN_NAME ) ) { ?>
36 <div class="updated notice matomo-marketplace-notice">
37 <p><?php echo sprintf( esc_html__( 'Easily install over 100 free plugins & %1$spremium features%2$s for Matomo with just a click', 'matomo' ), '<span style="white-space: nowrap;">', '</span>' ); ?>
38 </p>
39 <p><a href="https://builds.matomo.org/matomo-marketplace-for-wordpress-latest.zip" rel="noreferrer noopener"
40 class="button"><?php esc_html_e( 'Download Matomo Marketplace for WordPress', 'matomo' ); ?></a>
41
42 <a target="_blank"
43 href="https://matomo.org/faq/wordpress/how-do-i-install-a-matomo-marketplace-plugin-in-matomo-for-wordpress/"><span
44 class="dashicons-before dashicons-video-alt3"></span></a> <a target="_blank"
45 href="https://matomo.org/faq/wordpress/how-do-i-install-a-matomo-marketplace-plugin-in-matomo-for-wordpress/"><?php esc_html_e( 'Install instructions', 'matomo' ); ?></a>
46 </p>
47 </div>
48 <?php } ?>
49
50 <?php
51 function matomo_show_tables( $matomo_feature_sections ) {
52 foreach ( $matomo_feature_sections as $matomo_feature_section ) {
53 $matomo_feature_section['features'] = array_filter( $matomo_feature_section['features'] );
54 $matomo_num_features_in_block = count( $matomo_feature_section['features'] );
55
56 echo '<h2>' . esc_html( $matomo_feature_section['title'] ) . '</h2>';
57 echo '<div class="wp-list-table widefat plugin-install matomo-plugin-list matomo-plugin-row-' . esc_html( $matomo_num_features_in_block ) . '"><div id="the-list">';
58
59 foreach ( $matomo_feature_section['features'] as $matomo_index => $matomo_feature ) {
60 $matomo_style = '';
61 $matomo_is_3_columns = 3 === $matomo_num_features_in_block;
62 if ( $matomo_is_3_columns ) {
63 $matomo_style = 'width: calc(33% - 8px);min-width:282px;max-width:350px;';
64 if ( 2 === $matomo_index % 3 ) {
65 $matomo_style .= 'clear: inherit;margin-right: 0;margin-left: 16px;';
66 }
67 }
68 ?>
69 <div class="plugin-card" style="<?php echo esc_attr( $matomo_style ); ?>">
70 <?php
71 if ( $matomo_is_3_columns && ! empty( $matomo_feature['image'] ) ) {
72 ?>
73 <a
74 href="<?php echo esc_url( $matomo_feature['url'] ); ?>"
75 rel="noreferrer noopener" target="_blank"
76 class="thickbox open-plugin-details-modal"><img
77 src="<?php echo esc_url( $matomo_feature['image'] ); ?>"
78 style="height: 80px;width:100%;object-fit: cover;" alt=""></a>
79 <?php
80 }
81 ?>
82
83 <div class="plugin-card-top">
84 <div class="
85 <?php
86 if ( ! $matomo_is_3_columns ) {
87 ?>
88 name column-name
89 <?php
90 }
91 ?>
92 " style="margin-right: 0;
93 <?php
94 if ( empty( $matomo_feature['image'] ) ) {
95 echo 'margin-left: 0;';
96 }
97 ?>
98 ">
99 <h3>
100 <a href="<?php echo esc_url( ! empty( $matomo_feature['video'] ) ? $matomo_feature['video'] : $matomo_feature['url'] ); ?>"
101 rel="noreferrer noopener" target="_blank"
102 class="thickbox open-plugin-details-modal">
103 <?php echo esc_html( $matomo_feature['name'] ); ?>
104 </a>
105 <?php
106 if ( ! $matomo_is_3_columns && ! empty( $matomo_feature['image'] ) ) {
107 ?>
108 <a
109 href="<?php echo esc_url( $matomo_feature['url'] ); ?>"
110 rel="noreferrer noopener" target="_blank"
111 class="thickbox open-plugin-details-modal"><img
112 src="<?php echo esc_url( $matomo_feature['image'] ); ?>" class="plugin-icon"
113 style="object-fit: cover;"
114 alt=""></a>
115 <?php
116 }
117 ?>
118 </h3>
119 </div>
120 <div class="
121 <?php
122 if ( ! $matomo_is_3_columns ) {
123 ?>
124 desc column-description
125 <?php
126 }
127 ?>
128 "
129 style="margin-right: 0;
130 <?php
131 if ( empty( $matomo_feature['image'] ) ) {
132 echo 'margin-left: 0;';
133 }
134 ?>
135 ">
136 <p class="matomo-description"><?php echo esc_html( $matomo_feature['description'] ); ?>
137 <?php
138 if ( ! empty( $matomo_feature['video'] ) ) {
139 echo ' <a target="_blank" rel="noreferrer noopener" style="white-space: nowrap;" href="' . esc_url( $matomo_feature['video'] ) . '"><span class="dashicons dashicons-video-alt3"></span> ' . esc_html__( 'Learn more', 'matomo' ) . '</a>';
140 } elseif ( ! empty( $matomo_feature['url'] ) ) {
141 echo ' <a target="_blank" rel="noreferrer noopener" style="white-space: nowrap;" href="' . esc_url( $matomo_feature['url'] ) . '">' . esc_html__( 'Learn more', 'matomo' ) . '</a>';
142 }
143 ?>
144 </p>
145 <?php
146 if ( ! empty( $matomo_feature['price'] ) ) {
147 ?>
148 <p class="authors"><a class="button-primary"
149 rel="noreferrer noopener" target="_blank"
150 href="<?php echo esc_url( ! empty( $matomo_feature['download_url'] ) ? $matomo_feature['download_url'] : $matomo_feature['url'] ); ?>">
151 <?php
152 if ( 'free' === $matomo_feature['price'] ) {
153 esc_html_e( 'Download', 'matomo' );
154 } else {
155 echo esc_html( $matomo_feature['price'] );
156 }
157 ?>
158 </a>
159 </p>
160 <?php
161 }
162 ?>
163 </div>
164 </div>
165 </div>
166 <?php
167 }
168 echo '';
169 echo '</div><div style="clear: both"></div>';
170 if ( ! empty( $matomo_feature_section['more_url'] ) ) {
171 echo '<a target="_blank" rel="noreferrer noopener" href="' . esc_attr( $matomo_feature_section['more_url'] ) . '"><span class="dashicons dashicons-arrow-right-alt2"></span>' . esc_html( $matomo_feature_section['more_text'] ) . '</a>';
172 }
173 echo '</div>';
174 }
175 }
176
177 $matomo_feature_sections = [
178 [
179 'title' => 'Top free plugins',
180 'more_url' => 'https://plugins.matomo.org/free?wp=1&pk_campaign=WP&pk_source=Plugin',
181 'more_text' => 'Browse all free plugins',
182 'features' =>
183 [
184 [
185 'name' => 'Marketing Campaigns Reporting',
186 'description' => 'Measure the effectiveness of your marketing campaigns. Track up to five channels instead of two: campaign, source, medium, keyword, content.',
187 'price' => 'free',
188 'download_url' => 'https://plugins.matomo.org/api/2.0/plugins/MarketingCampaignsReporting/download/latest?wp=1' . $matomo_extra_url_params,
189 'url' => 'https://plugins.matomo.org/MarketingCampaignsReporting?wp=1&pk_campaign=WP&pk_source=Plugin',
190 'image' => '',
191 ],
192 [
193 'name' => 'Custom Alerts',
194 'description' => 'Create custom Alerts to be notified of important changes on your website or app!',
195 'price' => 'free',
196 'download_url' => 'https://plugins.matomo.org/api/2.0/plugins/CustomAlerts/download/latest?wp=1' . $matomo_extra_url_params,
197 'url' => 'https://plugins.matomo.org/CustomAlerts?wp=1&pk_campaign=WP&pk_source=Plugin',
198 'image' => '',
199 ],
200 ],
201 ],
202 ];
203
204 matomo_show_tables( $matomo_feature_sections );
205
206 echo '<br>';
207
208 $matomo_feature_sections = [
209 [
210 'title' => 'Most popular premium features',
211 'features' =>
212 [
213 [
214 'name' => 'Heatmap & Session Recording',
215 'description' => 'Truly understand your visitors by seeing where they click, hover, type and scroll. Replay their actions in a video and ultimately increase conversions.',
216 'price' => '99EUR / 119USD',
217 'url' => 'https://plugins.matomo.org/HeatmapSessionRecording?wp=1&pk_campaign=WP&pk_source=Plugin',
218 'image' => '',
219 ],
220 [
221 'name' => 'Custom Reports',
222 'description' => 'Pull out the information you need in order to be successful. Develop your custom strategy to meet your individualized goals while saving money & time.',
223 'price' => '99EUR / 119USD',
224 'url' => 'https://plugins.matomo.org/CustomReports?wp=1&pk_campaign=WP&pk_source=Plugin',
225 'image' => '',
226 ],
227
228 [
229 'name' => 'Premium Bundle',
230 'description' => 'All premium features in one bundle, make the most out of your Matomo for WordPress and enjoy discounts of over 25%!',
231 'price' => '499EUR / 579USD',
232 'url' => 'https://plugins.matomo.org/WpPremiumBundle?wp=1&pk_campaign=WP&pk_source=Plugin',
233 'image' => '',
234 ],
235 ],
236 ],
237 [
238 'title' => 'Most popular content engagement',
239 'features' =>
240 [
241 [
242 'name' => 'Form Analytics',
243 'description' => 'Increase conversions on your online forms and lose less visitors by learning everything about your users behavior and their pain points on your forms.',
244 'price' => '79EUR / 89USD',
245 'url' => 'https://plugins.matomo.org/FormAnalytics?wp=1&pk_campaign=WP&pk_source=Plugin',
246 'image' => '',
247 ],
248 [
249 'name' => 'Video & Audio Analytics',
250 'description' => 'Grow your business with advanced video & audio analytics. Get powerful insights into how your audience watches your videos and listens to your audio.',
251 'price' => '79EUR / 89USD',
252 'url' => 'https://plugins.matomo.org/MediaAnalytics?wp=1&pk_campaign=WP&pk_source=Plugin',
253 'image' => '',
254 ],
255 [
256 'name' => 'Users Flow',
257 'description' => 'Users Flow is a visual representation of the most popular paths your users take through your website & app which lets you understand your users needs.',
258 'price' => '39EUR / 39USD',
259 'url' => 'https://plugins.matomo.org/UsersFlow?wp=1&pk_campaign=WP&pk_source=Plugin',
260 'image' => '',
261 ],
262 ],
263 ],
264 [
265 'title' => 'Most popular acquisition & SEO features',
266 'features' =>
267 [
268 [
269 'name' => 'Search Engine Keywords Performance',
270 'description' => 'All keywords searched by your users on search engines are now visible into your Referrers reports! The ultimate solution to \'Keyword not defined\'.',
271 'price' => '69EUR / 79USD',
272 'url' => 'https://plugins.matomo.org/SearchEngineKeywordsPerformance?wp=1&pk_campaign=WP&pk_source=Plugin',
273 'image' => '',
274 ],
275 [
276 'name' => 'SEO Web Vitals',
277 'description' => 'Improve your website performance, rank higher in search results and optimise your visitor experience with SEO Web Vitals.',
278 'price' => '39EUR / 39USD',
279 'url' => 'https://plugins.matomo.org/SEOWebVitals?wp=1&pk_campaign=WP&pk_source=Plugin',
280 'image' => '',
281 ],
282 ],
283 ],
284 [
285 'title' => '',
286 'features' =>
287 [
288 [
289 'name' => 'Advertising Conversion Export',
290 'description' => 'Provides an export of attributed goal conversions for usage in ad networks like Google Ads so you no longer need a conversion pixel.',
291 'price' => '79EUR / 89USD',
292 'url' => 'https://plugins.matomo.org/AdvertisingConversionExport?wp=1&pk_campaign=WP&pk_source=Plugin',
293 'image' => '',
294 ],
295 [
296 'name' => 'Multi Attribution',
297 'description' => 'Get a clear understanding of how much credit each of your marketing channel is actually responsible for to shift your marketing efforts wisely.',
298 'price' => '39EUR / 39USD',
299 'url' => 'https://plugins.matomo.org/MultiChannelConversionAttribution?wp=1&pk_campaign=WP&pk_source=Plugin',
300 'image' => '',
301 ],
302 ],
303 ],
304 [
305 'title' => 'Other premium features',
306 'features' =>
307 [
308 [
309 'name' => 'Funnels',
310 'description' => 'Identify and understand where your visitors drop off to increase your conversions, sales and revenue with your existing traffic.',
311 'price' => '89EUR / 99USD',
312 'url' => 'https://plugins.matomo.org/Funnels?wp=1&pk_campaign=WP&pk_source=Plugin',
313 'image' => '',
314 ],
315 [
316 'name' => 'Cohorts',
317 'description' => 'Track your retention efforts over time and keep your visitors engaged and coming back for more.',
318 'price' => '49EUR / 59USD',
319 'url' => 'https://plugins.matomo.org/Cohorts?wp=1&pk_campaign=WP&pk_source=Plugin',
320 'image' => '',
321 ],
322 ],
323 ],
324 ];
325
326 matomo_show_tables( $matomo_feature_sections );
327
328 ?>
329
330 </div>
331