@victoriousv Connect Matomo doesn’t reference the text “N/A” in its code, so I suspect this is an issue with the complianz plugin. Are you able to check with their team?
I looked and found this
public function add_javascript_code() {
if ( $this->is_hidden_user() ) {
self::$logger->log( 'Do not add tracking code to site (user should not be tracked) Blog ID: ' . self::$blog_id . ' Site ID: ' . self::$settings->get_option( 'site_id' ) );
return;
}
$tracking_code = new WP_Piwik\TrackingCode( $this );
$tracking_code->is_404 = ( is_404() && self::$settings->get_global_option( 'track_404' ) );
$tracking_code->is_usertracking = 'disabled' !== self::$settings->get_global_option( 'track_user_id' );
$tracking_code->is_search = ( is_search() && self::$settings->get_global_option( 'track_search' ) );
self::$logger->log( 'Add tracking code. Blog ID: ' . self::$blog_id . ' Site ID: ' . self::$settings->get_option( 'site_id' ) );
if ( $this->is_network_mode() && 'manually' === self::$settings->get_global_option( 'track_mode' ) ) {
$site_id = $this->get_piwik_site_id();
if ( 'n/a' !== $site_id ) {
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo str_replace( '{ID}', $site_id, $tracking_code->get_tracking_code() );
} else {
echo '<!-- Site will be created and tracking code added on next request -->';
}
} else {
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo $tracking_code->get_tracking_code();
}
}
And this is wp-piwik/classes/WP_Piwik.php
The thing is when i follow the guide it says disable tracking code and that automatically makes it so that it disconnects and so i get the string
That code doesn’t print N/A out, and it isn’t capitalized like what you see on your screen. Also, if disabling tracking resulted in printing this out, I suspect we would have gotten more than one report.
If you deactivate the Connect Matomo plugin, does the text go away? If you keep Connect Matomo, but deactivate Complianz, does it go away?
If i disable plugin the text goes away thats why i thought it should be the plugin causing this.
But best practice is to keep the plugin (Connect Matomo) as the guide says and only disable tracking code and then use complianz aswell? https://matomo.org/faq/how-to/using-complianz-for-wordpress-consent-manager-with-matomo/
If you have Connect Matomo activated, with tracking disabled, and Complianz deactivated, is the problem still there?
And I don’t think you need to have Connect Matomo activated for Complianz for tracking to work. If you were using Matomo for WordPress, that would need to stay active. The only reason to keep Connect Matomo is if you wanted to see Matomo statistics within the WordPress admin.