Can I add a snippet to the header?

Hi, I want to install Pendo ( - analytics)
I have looked for information but have not been able to find it.

Could anyone help me?

Welcome here Daniel! :wave:

I don’t know Pendo, but if this is just a javascript snippet that needs to be added, you should be able to add it from your Discourse’s admin panel:
Customize → Themes (or Components, that might be more practical to create a new one if your forum has multiple themes) → Edit CSS/HTML → Head tab.

Let me know if Pendo needs more than this :slight_smile:


Thank you! Very useful tips.

Now, How can I change the content_security_policy, Or what can I do to fix this:

I am getting an error in the console that says:

head_tag_1.js:7 Refused to load the script '' because it violates the following Content Security Policy directive: "...". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

Hi @dafegosa,

I think option 1 in the site settings as described in this section of the Content Security Policy topic, might work for what you’re trying to do, but if not, there’s lots of good info in the topic:


Oh, I see. Thank you so much for your help Southpaw, Coin-coin le Canapin. That works for me.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.