Incompatibility with Email Encoder Pro : No stats recorded
-
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 :- Install both Email Encoder Pro and Plausible Plugin
- Add at last two categories (or to tags) to a Post
- In Email Encoder Pro settings, set Full-page scanner
- Check the source code of the Post
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 thesrc
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 protectmailto:
mails from being harvested my spammers.
- You must be logged in to reply to this topic.