• Resolved wpwebman

    (@wpwebman)


    I am using the Complianz | GDPR/CCPA Cookie Consent plugin with Matomo Analytics plugin.

    Matomo seems to be recording statistics fine but in the Complianz dashboard it says ‘Matomo is being used, but is not configured in Complianz.’

    I’ve been through the wizard several times but it doesn’t seem to make any difference.

    As Matomo seems to be measuring stats ok can this message be safely ignored?

    Many thanks

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author Aert Hulsebos

    (@aahulsebos)

    Hi @wpwebman,

    I just tried to reproduce this, but the notice should only show if the fields in the configuration part of statistics in the wizard are empty.

    As these fields are required, it’s hard to get them empty at the same time. Could you export your settings under ‘settings – data’ and upload here with wetransfer.com for example?

    This way I can see the exact set-up. Thanks!

    Thread Starter wpwebman

    (@wpwebman)

    Aert, thanks for the quick reply:

    Link to export of settings

    Many thanks

    Dave

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @wpwebman,

    To let Complianz place the Matomo script, please start by disabling the tracking code placement in Matomo Analytics itself. So, navigate to Matomo Analytics > Settings > Set “Add tracking code” to “Disabled”.

    And then you can configure the following options in the Complianz Wizard (Consent > Statistics – configuration). Change the URL (domain.com) to the domain of your own website.

    The SiteID is most-likely 1 in your case as well, but you can verify this by navigating to the Matomo Admin page and checking the URL:

    Kind regards, Jarno

    Thread Starter wpwebman

    (@wpwebman)

    Thanks @jarnovos

    In Statistics configuration I get the message:

    If you choose Complianz to handle your statistics implementation, please delete the current implementation.?For more information, please read this article.

    Thanks

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @wpwebman,

    Correct, that is also what you’re doing when you implement the steps as described in my previous post.

    Kind regards, Jarno

    Thread Starter wpwebman

    (@wpwebman)

    @jarnovos please forgive my confusion and thanks for your patience.

    So in the steps you suggested I have successfully completed:

    • Matomo Analytics > Settings > Set “Add tracking code” to “Disabled”.

    But when I try to configure the options in the Complianz Wizard (Consent > Statistics – configuration) I don’t see the question ‘Do you want Complianz to add Matomo to your website?” or space to enter the URL of Matomo, or space to enter my Matomo site ID, I just get the message ‘If you choose Complianz to handle your statistics implementation, please delete the current implementation.?For more information, please read this article.’

    And the Dashboard still says ‘Matomo is being used, but is not configured in Complianz.’

    So I’m not sure what the next step is from here…

    Many thanks

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @wpwebman,

    I understand. You likely have an Integration with another Statistics tool enabled under Complianz > Integrations > Plugins, and therefore Complianz assumes that you will use that tool to implement Statistics and disables these fields in the Wizard.

    Please navigate to Complianz > Integrations > Plugins, disable integrations with other Statistics plugins; and you’ll be able to proceed with the configuration of Matomo in Complianz as mentioned before.

    Kind regards, Jarno

    Thread Starter wpwebman

    (@wpwebman)

    Many thanks, removing a couple of plugin integrations solved the problem.

    One of the plugins was ExactMetrics, which handles Google Analytics. I’m still planning to use Google Analytics as I want to compare it with Matomo.

    The Wizard detects the GA cookies, so I’m assuming that visitors can still disable GA even though the ExactMetrics plugin isn’t integrated with Complianz?

    Plugin Author Aert Hulsebos

    (@aahulsebos)

    Hi @wpwebman,

    I’ll set it up.

    Matomo – before, and after consent.
    Exactmetrics – after consent.

    I will create an instance you can check, if I’m not understanding the above correctly. Let me know, regards Aert

    Plugin Author Aert Hulsebos

    (@aahulsebos)

    Hi @wpwebman,

    This is the cleanest way;

    You keep the Exactmetrics integration, and switch to Google Analytics in the wizard, like so: https://snipboard.io/vEWyxX.jpg

    Then, outside of Complianz. Either in your header, or a plugin like Header Footer Code Manager you can add this code:

    <!-- Matomo -->
    <script data-category="functional" data-service="matomo">
      var _paq = window._paq = window._paq || [];
      _paq.push(['trackPageView']);
      _paq.push(['enableLinkTracking']);
      (function() {
        var u="yourdomain.com/";
        _paq.push(['setTrackerUrl', u+'matomo.php']);
        _paq.push(['setSiteId', 1]);
        var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
        g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
      })();
    </script>
    <!-- End Matomo Code -->

    This code is edited, so Complianz knows it should skip it.

    I have an instance working here; https://vevs-capcom-xowi.instawp.xyz/ you can check with an extension like Tagbird.

    regards Aert

    Thread Starter wpwebman

    (@wpwebman)

    Thanks for your really useful help.

    GA4 seems to be either enabled or not according to the consent given but I was hoping to use Matomo cookie-less without consent so that:

    • With consent: GA and Matomo tracking (don’t mind if Matomo uses cookies or not if consent given)
    • Without consent: Matomo cookie-less tracking.

    In Tagbird, it suggests that Matomo is setting cookies (cookie: “1”,), whereas I was looking to use Matomo cookie-less:

    https://snipboard.io/6vHDl0.jpg

    In the Matomo WP plugin I have selected disable cookies.

    Many thanks

    Dave

    Thread Starter wpwebman

    (@wpwebman)

    As an update on this, it looks like Matomo isn’t leaving a cookie despite Tagbird saying (cookie: “1”,)

    [checked using the Matomo plugin on its own].

    Unfortunately, since I last looked at it, Matomo seems not to be tracking visits now via the script you provided (no tracking data or anything logged by TagBird). If I revert to tracking only via the Matomo plugin it works fine.

    Just to check I haven’t missed something, the steps I’ve taken are:

    • tracking code disabled in Matomo plugin
    • ExactMetrics integrated with Complianz
    • Google Analytics used for tracking in the Complianz wizard
    • The script you provided added to the website header

    Many thanks

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @wpwebman,

    I seem to have missed your previous reply, sorry about that. Did you change yourdomain.com/ to the actual domain of your website on line 7 of the provided script?

    Perhaps you could provide an URL to the page in question, so we may take a look at if any errors appear?

    Kind regards, Jarno

    Thread Starter wpwebman

    (@wpwebman)

    Yes, it’s our test website at https://ctbi.xyz

    We’re running Wordfence and I checked that wasn’t interfering, but in Wordfence’s live log when I access the home page there’s an entry:

    “tried to access a non-existent page https://ctbi.xyz/ctbi.xyz/matomo.js

    Many thanks

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @wpwebman,

    Looks like the URL/path to the matomo.js script is incorrect, so you receive a 404 Not Found instead. Could you try the below version of the script?

    <!-- Matomo -->
    <script data-category="functional" data-service="matomo">
      var _paq = window._paq = window._paq || [];
      _paq.push(['trackPageView']);
      _paq.push(['enableLinkTracking']);
      (function() {
        var u="/wp-content/plugins/matomo/app/";
        _paq.push(['setTrackerUrl', u+'matomo.php']);
        _paq.push(['setSiteId', 1]);
        var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
        g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
      })();
    </script>
    <!-- End Matomo Code -->

    Kind regards, Jarno

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Error message: Matomo is being used, but is not configured in Complianz’ is closed to new replies.