Javascript code snippet injection for cookie tracking

I am trying to have the following script added to our community site so we can get comprehensive cookie tracking.

This needs to be added to the page in the .

Can anyone help me get this configured in discourse setting?

Hey there,

I think you might have mis-filed this under #support:wordpress instead of #support, but no worries. You need to add the script to the head section of your theme. For this, and more on how to configure your theme, see


I copied and paste in the component section and added it to the theme.
Is this expected setup? Thanks

Yes, that’s right :+1: