ZenphotoCMS Forum
Matomo OptOut Source Code - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Matomo OptOut Source Code (/thread-13979.html)



Matomo OptOut Source Code - Ralf - 03-10-2024

Hi,
i am trying to add the Matomo "OptOut" Code to my site.
The code looks like:




Matomo OptOut Source Code - acrylian - 03-10-2024

Please escape your code examples properly as currently we cannot see anything.

Generally TinyMCe may strip JS code. In any case if you are using the include Matomo plugin you can just use the content macro MATOMO_OPTOUT




Matomo OptOut Source Code - Ralf - 03-10-2024

Hi Acrylian,
what happens is that everything in the script statement is deleted from the code (including the script tag).
Will try the content macro.,




Matomo OptOut Source Code - acrylian - 03-10-2024

There are two things. First TinyMCe might do that if enabeld and also ZP clears everything that is not in the allowed tags list.

But anyway, we have the content macro for that purpose because it is of course simpler and will get automatic updates if things change (which they did a few months ago from the Matomo side)




Matomo OptOut Source Code - Ralf - 03-10-2024

The content macro did the thing :-)