Skip to content

Commit

Permalink
Merge pull request #936 from matomo-org/891-connect-matomo
Browse files Browse the repository at this point in the history
rename WP-Matomo to Connect Matomo
  • Loading branch information
diosmosis authored Nov 5, 2023
2 parents 60e53e9 + 14b6e89 commit 16cf384
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 23 deletions.
5 changes: 2 additions & 3 deletions LEGALNOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ CREDITS

For detailed contribution history, refer to the source, tickets,
patches, and Git revision history, available at
https://github.com/matomo-org/wp-matomo/issues
https://github.com/matomo-org/wp-matomo
https://github.com/matomo-org/matomo-for-wordpress/issues
https://github.com/matomo-org/matomo-for-wordpress


SEPARATELY LICENSED COMPONENTS AND LIBRARIES
Expand All @@ -47,4 +47,3 @@ THIRD-PARTY CONTENT
License: The MIT License (MIT) see node_modules/chart.js/LICENSE.md

For more third party content see the list in `app/LEGALNOTICE`.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

A hassle-free and cost-free web analytics platform for your WordPress which lets you stay in full control with 100% data ownership and user-privacy protection.

This plugin installs a fully functional [Matomo](https://matomo.org) within your WordPress. If you already have a working Matomo (either [On-Premise](https://matomo.org/matomo-on-premise/) or [Matomo Cloud](https://matomo.org/hosting/)), use the [WP-Matomo Integration plugin](https://wordpress.org/plugins/wp-piwik/) instead. If you have a high traffic website, we recommend using On-Premise or the Cloud-hosted solution for better performance.
This plugin installs a fully functional [Matomo](https://matomo.org) within your WordPress. If you already have a working Matomo (either [On-Premise](https://matomo.org/matomo-on-premise/) or [Matomo Cloud](https://matomo.org/hosting/)), use the [Connect Matomo Integration plugin](https://wordpress.org/plugins/wp-piwik/) instead. If you have a high traffic website, we recommend using On-Premise or the Cloud-hosted solution for better performance.

Learn more about this plugin in the [readme.txt](readme.txt).

Expand Down
2 changes: 1 addition & 1 deletion app/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ function matomo_log_message_no_display($message)
}

if ( $GLOBALS['MATOMO_LOADED_DIRECTLY'] ) {
// see https://github.com/matomo-org/wp-matomo/issues/190
// see https://github.com/matomo-org/matomo-for-wordpress/issues/190
// wp-external-links plugin would register an ob_start(function () {...}) and manipulate any of our API output
// and in some cases the output would get completely lost causing blank pages.
add_filter('wpel_apply_settings', '__return_false', 99999);
Expand Down
2 changes: 1 addition & 1 deletion classes/WpMatomo/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ private function execute_request( $api_method, $with_idsite, $params ) {

Bootstrap::do_bootstrap();

// refs https://github.com/matomo-org/wp-matomo/issues/370 ensuring segment will be used from default request when
// refs https://github.com/matomo-org/matomo-for-wordpress/issues/370 ensuring segment will be used from default request when
// creating new request object and not the encoded segment
if ( isset( $params['segment'] ) ) {
if ( isset( $_GET['segment'] ) || isset( $_POST['segment'] ) ) {
Expand Down
10 changes: 5 additions & 5 deletions classes/WpMatomo/Admin/SystemReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class SystemReport {
'wp-rss-aggregator',
// twig conflict
'age-verification-for-woocommerce',
// see https://github.com/matomo-org/wp-matomo/issues/428
// see https://github.com/matomo-org/matomo-for-wordpress/issues/428
'minify-html-markup',
// see https://wordpress.org/support/topic/graphs-are-not-displayed-in-the-visits-overview-widget/#post-14298068
'bigbuy-wc-dropshipping-connector',
Expand Down Expand Up @@ -1177,10 +1177,10 @@ private function get_wordpress_info() {

if ( is_plugin_active( 'wp-piwik/wp-piwik.php' ) ) {
$rows[] = [
'name' => 'WP-Matomo (WP-Piwik) activated',
'name' => 'Connect Matomo (WP-Matomo) activated',
'value' => true,
'is_warning' => true,
'comment' => sprintf( esc_html__( 'It is usually not recommended or needed to run Matomo for WordPress and WP-Matomo at the same time. To learn more about the differences between the two plugins view this %s', 'matomo' ), sprintf( '<a href="%s" target="_blank">%s</a>', 'https://matomo.org/faq/wordpress/why-are-there-two-different-matomo-for-wordpress-plugins-what-is-the-difference-to-wp-matomo-integration-plugin/', esc_html__( 'URL', 'matomo' ) ) ),
'comment' => sprintf( esc_html__( 'It is usually not recommended or needed to run Matomo for WordPress and Connect Matomo at the same time. To learn more about the differences between the two plugins view this %s', 'matomo' ), sprintf( '<a href="%s" target="_blank">%s</a>', 'https://matomo.org/faq/wordpress/why-are-there-two-different-matomo-for-wordpress-plugins-what-is-the-difference-to-wp-matomo-integration-plugin/', esc_html__( 'URL', 'matomo' ) ) ),
];

$mode = get_option( 'wp-piwik_global-piwik_mode' );
Expand All @@ -1189,10 +1189,10 @@ private function get_wordpress_info() {
}
if ( ! empty( $mode ) ) {
$rows[] = [
'name' => 'WP-Matomo mode',
'name' => 'Connect Matomo mode',
'value' => $mode,
'is_warning' => 'php' === $mode || 'PHP' === $mode,
'comment' => esc_html__( 'WP-Matomo is configured in "PHP mode". This is known to cause issues with Matomo for WordPress. We recommend you either deactivate WP-Matomo or you go "Settings => WP-Matomo" and change the "Matomo Mode" in the "Connect to Matomo" section to "Self-hosted HTTP API".', 'matomo' ),
'comment' => esc_html__( 'Connect Matomo is configured in "PHP mode". This is known to cause issues with Matomo for WordPress. We recommend you either deactivate Connect Matomo or you go "Settings => Connect Matomo" and change the "Matomo Mode" in the "Connect to Matomo" section to "Self-hosted HTTP API".', 'matomo' ),
];
}
}
Expand Down
4 changes: 2 additions & 2 deletions classes/WpMatomo/Admin/views/info_bug_report.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
'</a>',
'<a target="_blank" rel="noreferrer noopener" href="https://developer.matomo.org/guides/core-team-workflow#submitting-a-feature-request">',
'</a>',
'<a target="_blank" rel="noreferrer noopener" href="https://github.com/matomo-org/wp-matomo/issues">',
'<a target="_blank" rel="noreferrer noopener" href="https://github.com/matomo-org/matomo-for-wordpress/issues">',
'</a>',
'<a target="_blank" rel="noreferrer noopener" href="https://github.com/matomo-org/wp-matomo/issues/new">',
'<a target="_blank" rel="noreferrer noopener" href="https://github.com/matomo-org/matomo-for-wordpress/issues/new">',
'</a>'
);
?>
Expand Down
2 changes: 1 addition & 1 deletion classes/WpMatomo/Admin/views/info_high_traffic.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
On-Premise</a>
separately (it's free as well) in combination with the <a href="https://wordpress.org/plugins/wp-piwik/"
target="_blank"
rel="noreferrer noopener">WP-Matomo</a> WordPress
rel="noreferrer noopener">Connect Matomo</a> WordPress
plugin.
It's free to install and has the same requirements as WordPress.
Your Matomo will then run a lot faster and it allows you to put your Matomo installation on a separate server if
Expand Down
2 changes: 1 addition & 1 deletion classes/WpMatomo/Admin/views/info_multisite.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<?php
echo sprintf(
esc_html__(
'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.
'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$sConnect Matomo%4$s WordPress plugin.
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.',
'matomo'
),
Expand Down
2 changes: 1 addition & 1 deletion classes/WpMatomo/Compatibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function register_hooks() {
}

/**
* refs https://github.com/matomo-org/wp-matomo/issues/131
* refs https://github.com/matomo-org/matomo-for-wordpress/issues/131
* When user disables feature "Disable PHP in plugins" in system tweaks
* then the Matomo backend doesn't work
*/
Expand Down
2 changes: 1 addition & 1 deletion classes/WpMatomo/User/Sync.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ private function get_users( $options = [] ) {

$current_user = wp_get_current_user();
if ( ! empty( $current_user ) && ! empty( $current_user->user_login ) ) {
// refs https://github.com/matomo-org/wp-matomo/issues/365
// refs https://github.com/matomo-org/matomo-for-wordpress/issues/365
// some other plugins may under circumstances overwrite the get_users query and not return all users
// as a result we would delete some users in the matomo users table. this way we make sure at least the current
// user will be added and not deleted even if the list of users is not complete
Expand Down
2 changes: 1 addition & 1 deletion plugins/WordPress/WordPress.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ public function onSendHttpRequestBy($url, $params, &$response, &$status, &$heade
public function onGenerateReportEnd()
{
if (Request::isCurrentApiRequestTheRootApiRequest() && !headers_sent()) {
// fix https://github.com/matomo-org/wp-matomo/issues/98
// fix https://github.com/matomo-org/matomo-for-wordpress/issues/98
// When some plugin does an ob_start before the API is being executed then the following happens:
// * PDF is generated and sent
// * We send the application/pdf content-type header
Expand Down
8 changes: 4 additions & 4 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Matomo is the #1 Google Analytics alternative that gives you full control over y

== Description ==

Already Matomo On-Premise or Matomo Cloud user? You need to use the [WP-Matomo plugin](https://wordpress.org/plugins/wp-piwik/) instead of this plugin.
Already Matomo On-Premise or Matomo Cloud user? You need to use the [Connect Matomo plugin](https://wordpress.org/plugins/wp-piwik/) instead of this plugin.

For all you WordPress website owners wanting an easier way to get customer insights to grow your business, you can now get the solution the professionals use, for free!

Expand Down Expand Up @@ -91,7 +91,7 @@ Running Matomo Analytics on your server can use significant resources. Whenever

* The minimum PHP memory limit is 128Mb, but we recommend to use a higher limit (memory_limit = 256M).
* PHP 7.2 at minimum is required.
* If you have high traffic website, or manage a lot of websites with WordPress MultiSite, we recommend installing [Matomo On-Premise](https://matomo.org/docs/installation/) or signup to [Matomo Cloud](https://matomo.org/hosting/) and install the [WP-Matomo plugin](https://wordpress.org/plugins/wp-piwik/) instead.
* If you have high traffic website, or manage a lot of websites with WordPress MultiSite, we recommend installing [Matomo On-Premise](https://matomo.org/docs/installation/) or signup to [Matomo Cloud](https://matomo.org/hosting/) and install the [Connect Matomo plugin](https://wordpress.org/plugins/wp-piwik/) instead.
* Needing to know more before you install? Have a [read through the most popular FAQs to ensure you’re making the right choice for you](https://matomo.org/faq/wordpress/what-are-the-requirements-for-matomo-for-wordpress/).

Over 1 million websites in over 190 countries are using Matomo already. Join the revolution too! Install Matomo on your Wordpress website completely free and take back full control of your data!
Expand Down Expand Up @@ -175,7 +175,7 @@ Needing to know more? [Click here to view all of our FAQs on our website](https:
== Credits ==

* The entire Matomo team and everyone who contributed
* Andr&eacute; Br&auml;kling who is the Author of the [WP-Matomo plugin](https://github.com/braekling/WP-Matomo)
* Andr&eacute; Br&auml;kling who is the Author of the [Connect Matomo plugin](https://github.com/braekling/WP-Matomo)

== Screenshots ==

Expand All @@ -193,4 +193,4 @@ Needing to know more? [Click here to view all of our FAQs on our website](https:

== Changelog ==

[See changelog for all versions](https://github.com/matomo-org/wp-matomo/blob/develop/CHANGELOG.md).
[See changelog for all versions](https://github.com/matomo-org/matomo-for-wordpress/blob/develop/CHANGELOG.md).
2 changes: 1 addition & 1 deletion tests/phpunit/wpmatomo/test-optout.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function test_matomo_opt_out_all_options() {
}

public function test_optOutJs_exists() {
// see https://github.com/matomo-org/wp-matomo/issues/46
// see https://github.com/matomo-org/matomo-for-wordpress/issues/46
$this->assertFileExists( plugin_dir_path( MATOMO_ANALYTICS_FILE ) . 'app/plugins/CoreAdminHome/javascripts/optOut.js' );
}

Expand Down

0 comments on commit 16cf384

Please sign in to comment.