You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Online

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

#112136 Onclick Event on Media Manager

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Ryan on Saturday, 29 October 2022 10:40 BST

galbur
Hi I try to track Audio Files with Matomo to see how many times a song is played. Is there a wa, to give an onclick Event like

"onclick="_paq.push(['trackEvent', 'Audiotracking', 'Play', 'Song 1'])""
within the Media Manager? I tried to do it directly in the code but this seems to be forbidden because the Code is stripped out. Thank you Regards Christoph

Ryan
Support for event attributes (onclick, onload, onchange etc.) is not enabled by default.

You can enable Event Attribute support in Editor Profiles -> Editor Parameters -> Advanced.

See - https://www.joomlacontenteditor.net/support/faq/editor/event-attributes-removed

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.