> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nemu.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# WordPress

> Step-by-step guide to connect WordPress to Nemu Dashboard

The UTM passing script plays a crucial role in transferring UTM information from one page to another within your sales funnel, ensuring this data is tracked until the checkout moment.

It is essential to install this script on all pages of your site to ensure your sales are monitored accurately. Below, we provide a step-by-step guide on how to install the script.

## Installing the Script on WordPress

1. Access the **Plugins** section in WordPress.

<img src="https://mintcdn.com/nemu/MBgXgTDoygB9nM1Q/assets/pages/integracoes/wordpress/1.png?fit=max&auto=format&n=MBgXgTDoygB9nM1Q&q=85&s=9b9f720c7bc84e678857dedbe45c119a" alt="" width="1542" height="728" data-path="assets/pages/integracoes/wordpress/1.png" />

2. Search for **Header Footer Code Manager** and click on **Install** and then **Activate**

<img src="https://mintcdn.com/nemu/MBgXgTDoygB9nM1Q/assets/pages/integracoes/wordpress/2.png?fit=max&auto=format&n=MBgXgTDoygB9nM1Q&q=85&s=3a606617ad8293a4711199fd67923f01" alt="" width="1530" height="713" data-path="assets/pages/integracoes/wordpress/2.png" />

3. Click on **HFCM** in the sidebar and then to **add a new snippet**.

<img src="https://mintcdn.com/nemu/MBgXgTDoygB9nM1Q/assets/pages/integracoes/wordpress/3.png?fit=max&auto=format&n=MBgXgTDoygB9nM1Q&q=85&s=e1d049e96c1cf14cf0c843e0e343f805" alt="" width="2308" height="1124" data-path="assets/pages/integracoes/wordpress/3.png" />

5. Fill in the information and select for specific page **(Specific Pages)**.
6. In **Page List**, add the pages where you want to install the script.
7. Paste the script in **Snippet / Code** and click on **Save**.

```js UTM Passing Script theme={null}
<script>
   var timer = setInterval(function () {
      const location =
         window.trackingNemu?.nemuUtms ||
         new URL(document.location.href)?.searchParams;
      const fields = [
         "src",
         "sck",
         "utm_source",
         "utm_medium",
         "utm_campaign",
         "utm_content",
         "utm_term",
         "nemu_source",
         "nemu_medium",
         "nemu_campaign",
         "nemu_content",
         "nemu_adset",
         "nemu_term"
      ];
      var links = document.getElementsByTagName("a");

      for (var i = 0, n = links.length; i < n; i++) {
         if (links[i].href.includes("#")) continue;
         if (links[i].href) {
            let link = new URL(links[i].href);
            fields.forEach((field) => {
               if (location.get(field))
                  link.searchParams.set(field, location.get(field));
            });
            let href = link.href;
            links[i].href = href;
         }
      }
   }, 500);
</script>
```
