# Javascript code snippet injection for cookie tracking

**URL:** https://meta.discourse.org/t/javascript-code-snippet-injection-for-cookie-tracking/185851
**Category:** Support
**Created:** [April 7, 2021, 9:24am UTC](https://meta.discourse.org/t/javascript-code-snippet-injection-for-cookie-tracking/185851 "2021-04-07T09:24:08Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [April 7, 2021, 10:32am UTC](https://meta.discourse.org/t/javascript-code-snippet-injection-for-cookie-tracking/185851/2 "2021-04-07T10:32:13Z")

</div>

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

> [@Beginner's guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966):
>
> This is a crash course in Discourse theme basics. The target audience is everyone who is not familiar with Discourse themes. If you’ve already used Discourse theme / theme components, this guide is probably not something you need to read. What are themes and theme components? A theme or theme component is a set of files packaged together designed to either modify Discourse visually or to add new features. Let’s start with themes. Themes In general, themes are not supposed to be compatible …

---

_[View the full topic](https://meta.discourse.org/t/javascript-code-snippet-injection-for-cookie-tracking/185851)._
