PopularFeatures.php
86 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 | namespace WpMatomo\Admin\Marketplace; |
| 11 | |
| 12 | class PopularFeatures { |
| 13 | |
| 14 | private $show_free_plugins; |
| 15 | |
| 16 | public function __construct( $show_free_plugins = true ) { |
| 17 | $this->show_free_plugins = $show_free_plugins; |
| 18 | } |
| 19 | |
| 20 | public function show() { |
| 21 | $matomo_popular_features = $this->get_popular_features(); |
| 22 | |
| 23 | if ( ! $this->show_free_plugins ) { |
| 24 | $matomo_popular_features = array_filter( |
| 25 | $matomo_popular_features, |
| 26 | function ( $feature ) { |
| 27 | return ! empty( $feature['price'] ); |
| 28 | } |
| 29 | ); |
| 30 | } |
| 31 | |
| 32 | include __DIR__ . '/views/popular-features.php'; |
| 33 | } |
| 34 | |
| 35 | private function get_popular_features() { |
| 36 | return [ |
| 37 | 'MarketingCampaignsReporting' => [ |
| 38 | 'name' => __( 'Marketing Campaigns Reporting', 'matomo' ), |
| 39 | 'desc' => __( "Measure the effectiveness of your marketing campaigns. Track up to five channels instead of two: campaign, source, medium, keyword, content.'", 'matomo' ), |
| 40 | 'img' => 'marketing-campaign-analytics.png', |
| 41 | ], |
| 42 | 'SearchEngineKeywordsPerformance' => [ |
| 43 | 'name' => __( 'Search Engine Keywords Performance', 'matomo' ), |
| 44 | 'desc' => __( 'All keywords searched by your users on search engines are now visible into your Referrers reports! The ultimate solution to \'Keyword not defined\'.', 'matomo' ), |
| 45 | 'price' => '79EUR / 89USD', |
| 46 | 'img' => 'search-engine-keywords-performance.webp', |
| 47 | ], |
| 48 | 'HeatmapSessionRecording' => [ |
| 49 | 'name' => __( 'Heatmap & Session Recording', 'matomo' ), |
| 50 | 'desc' => __( 'Truly understand your visitors by seeing where they click, hover, type and scroll. Replay their actions in a video and ultimately increase conversions.', 'matomo' ), |
| 51 | 'price' => '109EUR / 129USD', |
| 52 | 'img' => 'heatmap-session-recording.webp', |
| 53 | ], |
| 54 | 'CustomAlerts' => [ |
| 55 | 'name' => __( 'Custom Alerts', 'matomo' ), |
| 56 | 'desc' => __( 'Create custom Alerts to be notified of important changes on your website or app!', 'matomo' ), |
| 57 | 'img' => 'custom-alerts.png', |
| 58 | ], |
| 59 | 'MediaAnalytics' => [ |
| 60 | 'name' => __( 'Media Analytics', 'matomo' ), |
| 61 | 'desc' => __( 'Grow your business with advanced video & audio analytics. Get powerful insights into how your audience watches your videos and listens to your audio.', 'matomo' ), |
| 62 | 'price' => '89EUR / 99USD', |
| 63 | 'img' => 'media-analytics.jpg', |
| 64 | ], |
| 65 | 'CustomReports' => [ |
| 66 | 'name' => __( 'Custom Reports', 'matomo' ), |
| 67 | 'desc' => __( 'Pull out the information you need in order to be successful. Develop your custom strategy to meet your individualized goals while saving money & time.', 'matomo' ), |
| 68 | 'price' => '109EUR / 129USD', |
| 69 | 'img' => 'custom-reports.png', |
| 70 | ], |
| 71 | 'WpPremiumBundle' => [ |
| 72 | 'name' => __( 'WordPress Premium Bundle', 'matomo' ), |
| 73 | 'desc' => __( 'All premium features in one bundle, make the most out of your Matomo for WordPress and enjoy discounts of up to 25%!', 'matomo' ), |
| 74 | 'price' => '549EUR / 639USD', |
| 75 | 'img' => 'matomo-wordpress-premium-bundle.png', |
| 76 | ], |
| 77 | 'UsersFlow' => [ |
| 78 | 'name' => __( 'Users Flow', 'matomo' ), |
| 79 | 'desc' => __( '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.', 'matomo' ), |
| 80 | 'price' => '49EUR / 59USD', |
| 81 | 'img' => 'users-flow.webp', |
| 82 | ], |
| 83 | ]; |
| 84 | } |
| 85 | } |
| 86 |