Plausible says cannot verify (although starts gathering statistics)

Created on 23 January 2025, 3 months ago

Problem/Motivation

On Plausible.io, the verification page repeatedly returns:

We couldn't reach your site

If your site is running at a different location, please manually check your
integration. Learn more

When configured with the options indicated by this URL: https://plausible.io/example.org/verification?404=true&file-downloads=tr...

but the dashboard *is* collecting information, so it must in fact be working?

Possibly the problem is a mis-match between the configuration of the Plausible Drupal module and the configuration of Plausible?

Steps to reproduce

Attached screenshot has the module configuration used.

Proposed resolution

I wrote to Plausible support about this and they responded:

"I've checked your site and I'm not sure how you've ended up with that script:

<script async defer data-domain="crla.org" src="https://plausible.io/js/plausible.js" data-api="https://plausible.io/js/script.file-downloads.hash.outbound-links.js"></script>

Can you please change this to:

<script defer data-domain="crla.org" src="https://plausible.io/js/script.file-downloads.hash.outbound-links.js"></script>
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Active

Version

2.1

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States mlncn Minneapolis, MN, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @mlncn
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States mlncn Minneapolis, MN, USA

    The "We couldn't reach your site" error is entirely unrelated to the module or its configuration, i am fairly certain.

    Indeed, Plausible was collecting statistics while saying it could not reach the siteโ€” until in failing to plainly read the "couldn't reach the site" part and interpreting more generically as failing to work, i copied the script URL part of Plausible's manual setup code and put it in the API endpoint. (That first snippet the wrong one; the second snippet is correct and is what the module produces when configured properly.)

    After that all data collection stopped working, it turned out. Now i have correctly put the https://plausible.io/js/script.file-downloads.hash.outbound-links.js part into the Script source and Plausible is again happily collecting statistics.

    And still giving me the "We couldn't reach your site" error.

    It would be nice for Plausible to have Drupal-specific instructions, or for the module to more clearly explain that the Script source should literally be taken from the <script src=, but the real problem here is Plausible.io having trouble reaching one particular siteโ€” exact same settings worked fine for another Drupal website.

    Will report back with what Plausible says but 99.99% sure this is not a module problem.

  • ๐Ÿ‡ง๐Ÿ‡ชBelgium dieterholvoet Brussels

    I checked and the snippet this module generates looks like the one that's generated by Plausible. I'm going to close this issue, feel free to reopen in case this does turn out to be an issue with the module.

Production build 0.71.5 2024