Displaying data in HTML does not work

Hey. Hey,

I’m trying to run this HTML via the TEXT panel, but only the code is displayed, it doesn’t run. :frowning:

Can you advise me how to run it? I have also tried the HTML graphics plugin, but that doesn’t work for my code either. I am using the latest version of Grafana Cloud in the Free version.

<div id="showHeurekaBadgeHere-12"></div><script type="text/javascript">
//<![CDATA[
var _hwq = _hwq || [];
    _hwq.push(['setKey', 'XXX']);_hwq.push(['showWidget', '12', '98573', 'MyWeb.com', 'myweb-com']);(function() {
    var ho = document.createElement('script'); ho.type = 'text/javascript'; ho.async = true;
    ho.src = 'https://sk.im9.cz/direct/i/gjs.php?n=wdgt&sak=XXX';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ho, s);
})();
//]]>
</script>

if you check the browser element you get

your script code is outside of your div id ="showHeure....

is that what you want?

disable html sanitization:

As I wrote, I use Grafana Cloud, this setting is not intended for Grafana Cloud.

This isn’t important. I’m solving that HTML is not rendered in Grafana Cloud. The script doesn’t run, the code is just written in the Dashboard. :frowning:

Ok, then you can’t use HTML in text panel, because it is sanitizied - it is a security feature of Grafana cloud.