Hi,
I found an incompatibility between Plausible Plugin and Email Encoder Pro (by @tillkruess). Under some circumstances the Plausible tracking script fails to load and no stats are sent to Plausible.io.
Step to reproduce :
Expected source code :
<script defer
data-domain='domain.tld'
data-api='https://domaine.tld/wp-json/f3c831/v1/19cb/7557d478'
data-cfasync='false'
event-author='author'
event-category='CategoryOne'
event-category='CategoryTwo'
src="https://plausible.local/wp-content/uploads/3f0810ba81/1929006b.js?ver=1726748204" id="plausible">
Actual output :
<script defer
data-domain='domain.tld'
data-api='https://domaine.tld/wp-json/f3c831/v1/19cb/7557d478'
data-cfasync='false'
event-author='author'
event-category='CategoryOne'>
Every attribute after the first event-category
are missing, including the src
that loads the script.
The issue only appears when the Post has at least two categories or two tags.
Example output when using only one category, but two tags :
<script defer
data-domain='domain.tld'
data-api='https://domaine.tld/wp-json/f3c831/v1/19cb/7557d478'
data-cfasync='false'
event-author='author'
event-category='Uncategorized'
event-post_tag='TagOne'>
Every attribute past event-post_tag
is dropped.
The issue started in July after updating Plausible 2.0.9 to 2.1. It made my Plausible stats drop to zero, despite server logs showing activity.
I’ve tested the issue on a new, blank, empty WordPress 6.6.2 with only the latest Plausible (2.1.3) and the latest Email Encoder Pro (0.3.11) activated. The issue remains.
My website was under WordPress 6.2.6 with Email Encoder Pro 0.3.10 and Plausible 2.1 when the problem started.
I can’t just deactivate one of the plugins, as I need Plausible to track usage, and Email Encoder Pro to protect mailto:
mails from being harvested my spammers.
Hi,
Plausible script tag includes the Post category (event-category=''
). But when the category name has an apostrophe '
(U+0027) in it, the output may break things.
See below. The category named “John’s stuff” will output event-category='John's stuff'
where the apostrophe in John's
may break the event-category=''
syntax.
<script defer data-domain='domain.tld'
data-api='https://domaine.tld/wp-json/f3c831/v1/19cb/7557d478'
data-cfasync='false'
event-author='author'
event-category='John's stuff'
src="https://plausible.local/wp-content/uploads/3f0810ba81/1929006b.js?ver=1726748204" id="plausible">
Not sure this is an actual issue, this doesn’t feel right.
]]>In the Plausible plugin settings at Custom Events it says “This feature is not available in Plausible Community Edition.”.
When I check the documentation there is no hint that this feature is not included anymore in the selfhosted CE.
Could you please check what’s it about? I would like to start tracking a few buttons, and that should be the way to do it. When I evaluated Plausible this definitely also worked (and it might still work) but what it tells me in the settings here confuses me.
Also notice here how it reacts when I enable / disable it and then do a page refresh
https://cln.sh/JXnwNJYS
Thanks for checking and getting back to me about this.
best regards
Markus
Hi there,
while I was preparing my question in here I realized something but I keept the original version below – I think the onboarding process is not including the community edition. I only tested it once, when you want to get a token in Plausible 2.1.2 it opens the dialoge for plausible.io and not the self-hosted version. I think what’s missing is one step prior that asks “Are you using the Plausible.io Cloud or Plausible community-edition (self-hosted)?” and allow to enter the self-hosted URL there, which will be used for the following dialoge to get the token.
I could work around it, but it was a bit confusing, especially as it triggered immediately in me: “oh no, not again”
I hope I am not seeing it wrong, as I only added one single new site and therefore could not test it further.
best regards
Markus
— Original Queston —
Hello,
I spent many days and even weeks troubleshooting the Plausible plugin and integration to self-hosted Plausible in the past. So this time I try to avoid that, hence I am writing right away.
Do we have similar problems again?
I just tried to setup a new sites with the latest version of the Plausible plugin.
When I try to get the token from within WordPress during the onboarding process, it opens the popup with the following link: https://plausible.io/mynewwebsite.com/settings/integrations?new_token=WordPress
But actually it should go to the self-hosted version.
We had similar issues in the past. Therefore I want to ask first, if those problems are known and/or back again?
Thanks a lot
Markus
Hello,
I would like to categorize some pages and use custom properties for this. In the documentation here https://plausible.io/docs/custom-props/for-pageviews it is recommended to either change the Plausible Snippet or to choose the combination of script.manual.pageview-props.js as an alternative.
How can I customize the snippet with the plugin?
I already use the Enhanced measurements “404 error pages”, “Outbound links” and “Authors and categories” but the snippet has only changed to plausible.outbound-links.pageview-props.js
I would be very grateful for a few tips.
Best regards
Manuel
Hello,
this is for the plugin when Plausible is self-hosted. I noticed the following behavior. Out of the box in the plugin the following settings are enabeld under ‘Enhanced measurements’
I tried to enable Custom Events as I assume that this is changing the script automatically. I assume when using the plugin, I don’t have to change anything manually in the snippet: https://plausible.io/docs/custom-event-goals#1-change-the-plausible-snippet-on-your-site
If I enable Custom Events I am getting the message “Custom events enabled.”, however what actually happens at least once you refresh the page or come back later, all settings are suddenly disabled. 404 error, outbound, file downloads, custom events → all are disabled and can’t be enabled anymore
I tested this on two sites and got the same results.
Have you noticed the same?
]]>Tried to enable the proxy and got this error:
Plausible’s proxy couldn’t be enabled, because the WordPress API is inaccessable. This might be due to a conflicting setting in a (security) plugin or server firewall. Make sure you whitelist requests to the Proxy’s endpoint:?
/wp-json/{redacted}
.?Contact support?if you need help locating the issue.
I installed this plugin to display and control all the endpoints but I’m not seeing anything there related to the endpoint in that error or anything related to Plausible.
I don’t currently have a security plugin installed except Limit Login Attempts. Are you aware of conflicts with that plugin or others potentially?
Thanks for your help!
]]>Just started using your service, and love how much simpler it is over Google Analytics…
One question, when I’m using the plugin and click ‘enable proxy’ is that all I have to do, I’m using hosted WordPress with Kinsta which is nGinx but on Google Cloud, so not sure what I need to do…?
It seems to be recording hits, if I’ve set it to ‘enable proxy’ but without any of the nginx config will it just work as with ‘enable proxy’ off… or will it in fact break something?
Hope this makes sense, thanks for reading.
]]>Just updated to 2.0.6 and had to go into Recovery mode to get into the site and rollback Plausible to 2.0.5. This is the error code that the Plugins screen showed me:
]]>An error of type?<span style="font-family: inherit; font-size: 0.8rem;">E_ERROR</span>?was caused in line?<span style="font-family: inherit; font-size: 0.8rem;">171</span>?of the file?
.../public_html/wp-content/plugins/plausible-analytics/src/Helpers.php
. Error message:?Uncaught Error: Call to undefined function Plausible\Analytics\WP\phptrailingslashit() in .../public_html/wp-content/plugins/plausible-analytics/src/Helpers.php:171 Stack trace: #0 .../public_html/wp-content/plugins/plausible-analytics/src/Helpers.php(133): Plausible\Analytics\WP\Helpers::get_proxy_resources() #1 .../public_html/wp-content/plugins/plausible-analytics/src/Proxy.php(56): Plausible\Analytics\WP\Helpers::get_proxy_resource() #2 .../public_html/wp-content/plugins/plausible-analytics/src/Plugin.php(47): Plausible\Analytics\WP\Proxy->__construct() #3 .../public_html/wp-includes/class-wp-hook.php(324): Plausible\Analytics\WP\Plugin->register_services() #4 .../public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #5 .../public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #6 .../public_html/wp-settings.php(506): do_action() #7 .../public_html/wp-config.php(109): require_once('/home/u53289429...') #8 .../public_html/wp-load.php(50): require_once('/home/u53289429...') #9 .../public_html/wp-login.php(12): require('/home/u53289429...') #10 {main} thrown
I’ve got the plugin working well, and I’ve enabled “Custom Events” and “Authors and Categories”. The “Authors and Categories” works really well for standard blog post categories, but I really need it to also trach “Topics” (a custom taxonomy) on our “Episodes” post type.
It seems like the answer would be on this page in your docs, but it’s hard to fully understand and troubleshoot how I’d make this happen, particularly since the “Topics” doesn’t exist on every page of the site, I’d want this script to only run on the Episodes post type.
Looking forward to your assistance here. Thank you!
]]>is it possible with the plugin to track site search terms like ?s=search terms
thanks!
]]>Hi there,
thanks for this awesome tech! But I wonder why I can’t use proxy with a self hosted domain constant in the wp-config.php file?
Cheers!
]]>When I click the Show page analytics (not sure if that’s the actual English text, I have a Norwegian translation) in the toolbar, it says 0 visitors, while the number for that page is 274 when viewing in the statistics overview.
It seems like the URL it tracks from the “Show page analytics” isn’t the full URL, but just the last part of the URL.
it say
While I guess it should be /2023/10/12/ma-du-betale-for-facebook/ ?
]]>Plugin seems to be attempting to load plausible.js from the following location: https://our-domain.com/js/plausible.js?ver=1.3.4
Which is of course throwing the following error:Failed to load resource: the server responded with a status of 404 ()
Reinstalling the plugin and then loggin into the plausiable.io account and resaving the timezone seem to have resolved this issue.
Hello Team!
What a fantastic solution you have!
I’ve self hosted plausible on a dock container and I’ve setup the smtp as follows: https://plausible.io/docs/self-hosting-configuration
But i can’t receive any email notification:
here are my settings (working with uptime kuma self hoted)
Authentication = enabled
Registration = enabled
Mailer Email = [email protected]
SMTP Host Address = myprovidersmtpaddress
SMTP Port = 465
SMTP Username = [email protected]?
SMTP Password?= mypassword
SMTP SSL?= enabled
SMTP Retries =?2
but nothing works.
I’ve tried to look for a solution all over the place and would really appreciate any direction/
Looking forward reading you.
Ludo
As I am just learning plausible, I really got excited about implementing the outbound links and file-downloads JS into one JS. But, in reporting screen it seems to only show one or another. I am now experimenting using both scripts but still on the reporting window per domain it only shows one or the other…you can take the extra step on the drop-down and look at the other goal, but, it seems once one goal is reported first that is all you see.
]]>I checked the box for ‘Editor’ on the setting to ‘show stats dashboard to additional user roles’ – but my editor users still can’t see the analytics inside the dashboard.
They receive an error that says “Sorry, you are not allowed to access this page.”
]]>Long time Plausible user. Love the software.
However when I create an embed page within WordPress or when I click “view analytics” from within the WordPress admin dashboard, I see nothing.
The analytics are working within the Plausible site and on the dedicated share link. Just not loading in any Wordpess page or dashboard. Am I missing something here?
]]>With the latest Plugin-Update to v1.2.6 there is no custom domain setting any more. Because i’m using Plausible behind a proxy this is really necessary for tracking.
Will this be fixed in future updates?
Best regards, Bernhard
Hello Plausible
My client has been using Plausible with the WordPress plugin on their site for a few months. It’s been working great.
We’d like to start tracking file downloads. I see instructions here on how to add the correct script to the site: https://plausible.io/docs/file-downloads-tracking
Can the file-download feature be added or managed with the WordPress plugin? Should I just remove the plugin and add the script to the site header manually?
thanks,
Clare
]]>I’m currently trialling Plausible and I wanted to check, do you need to have both the plugin and the script? what’s the benefit of having the plugin installed?
]]>I am currently researching for alternatives to Google Analytics in anticipation for next year’s decommission of UA and I wanted to ask if your platform is able to track transactions/visits from a Google Ads Campaign? If so, would this need any specific setup or would it just work by default?
In addition, would your platform track WooCommerce purchases? ie. would I be able to see how many sales I made per month/day and which products are most sold?
Thanks in advance
]]>Great to see the Plugin back online. But there is some Bug with the self-hosted-config…
If you enter the self-hosted URL in the backend, activate it with the button and save changes, this will not be stored. As soon as you reload the page, the button is deactivated again. Also, no self-hosted snipped is in the source code of the website and therefore no visitors are tracked.
Can you Check this? Thanks.
]]>This plugin has been removed from www.remarpro.com 11 days ago (after it was found 2 weeks earlier?) for a known vulnerability published on https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27845 but I don’t see any activity to get this fixed. Can you please give an update on the status and preferably fix the issue?
This plugin is used on a website of a client and I would like to know if they should remove/replace the plugin or if a solution will be available soon.
Thanks,
Jos Klever
Web Support
Hello,
All the French translation strings for the stable release are in “waiting” status; meaning they need someone to approve them.
I would like to contribute to the translation of the other strings, but I’m not sure if it’s worth it if they end up in “waiting” with nobody looking at them. I could also help in reviewing the existing translations, but here again I’m not sure how to do that. I have some experience translating software but I’ve never used the WordPress platform for that.
Any help would be welcome
Thanks in advance.
Baptiste
]]>Hello,
is it possible to use this plugin in conjunction with a self-hosted version of Plausible?
Thank you in advance and kind regards,
Sascha
There are instructions for use with WP Rocket, and I tried to do the same with W3 Total Cache, but I’m not sure if I’m doing it right.
Also, does it matter if I’m using using custom domain for how to exclude the JS?
]]>The embedding fails, I get this error https://support.mozilla.org/no/kb/xframe-nettfeil-side?as=u&utm_source=inproduct
Visiting plausible.io works fine, it’s just the embedded view in WordPress that fails.
BTW, stats boxes on the Welcome dashboard would be a nice feature. MonsterInsights which I was using for GA had this.
]]>I’ve had your plug-in for a week and the amount of traffic it registers dropped precipitously on 9/7. according to GA I had more than 500 visitors on each of the past 3 days. according to you i had 174, 3 and 1. have any idea what might be wrong?
]]>I use the User Roles Editor plugin on several sites to manage what users can and cannot access. Is it possible to integrate Plausible into this so I can let other user roles, like Editors, view the analytics in the WordPress dashboard?
]]>