Member
Member
Ralf   03-10-2024, 11:23
#1

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

Administrator
Administrator
acrylian   03-10-2024, 12:16
#2

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

Member
Member
Ralf   03-10-2024, 12:32
#3

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.,

Administrator
Administrator
acrylian   03-10-2024, 13:00
#4

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)

Member
Member
Ralf   03-10-2024, 15:51
#5

The content macro did the thing :-)

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.