# Forgot to edit CSP when adding tracking code via custom component

**URL:** https://meta.discourse.org/t/forgot-to-edit-csp-when-adding-tracking-code-via-custom-component/174811
**Category:** Support
**Created:** [January 2, 2021, 4:18pm UTC](https://meta.discourse.org/t/forgot-to-edit-csp-when-adding-tracking-code-via-custom-component/174811 "2021-01-02T16:18:22Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![Tuhadj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tuhadj/32/166173_2.png) [@Tuhadj](https://meta.discourse.org/u/Tuhadj)
#### Post date: [January 28, 2021, 11:51am UTC](https://meta.discourse.org/t/forgot-to-edit-csp-when-adding-tracking-code-via-custom-component/174811/8 "2021-01-28T11:51:26Z")

</div>

Hi @Falco I think I’ve got the same problem with Matomo not working with Discourse. It is what the support team of Matomo told me when [I opened a ticket on their github](https://github.com/matomo-org/matomo/issues/17157) :

> _Matomo support :_ “I checked your website and the configured CSP is preventing to load our tracker. You’ll want to have a look at [Is the Matomo JavaScript Tracker CSP (Content Security Policy) compatible and how do I set it up? FAQ - Analytics Platform - Matomo](https://matomo.org/faq/general/faq_20904/) and check how this can be configured in your server environment.”

I went to my Discourse logs (URL/logs) and couldn’t find anything related.

My discourse is on this URL : [https://hec.fm](https://hec.fm)  
And my Matomo instance on : [https://stats.hec.fm](https://stats.hec.fm)

And I thought I already changed the CSP in the settings to make it work but still not working :

 ![CSP not working Matomo](https://global.discourse-cdn.com/meta/original/3X/a/0/a0baab34415e27a419cc2af1024e8be9c256838a.png)

I thought I followed thoroughly the tutorial [Script to enable Matomo analytics on Discourse](https://meta.discourse.org/t/script-to-enable-matomo-analytics-on-discourse/33090) but seems not enough.

What did I do wrong ? 🙂

---

_[View the full topic](https://meta.discourse.org/t/forgot-to-edit-csp-when-adding-tracking-code-via-custom-component/174811)._
