Autopilot: How do I add the tracking code to a Wordpress website?
This article explains how to add the tracking code to a Wordpress website.
Option 1: Use a plugin
1. Install the plugin: Header and Footer.
2. Go to the configuration panel of the plugin.
3. Under the "Page head and footer" tab, add the tracking code to the section which says "Code to be added to the HEAD section of every page":
![](https://ic.autopilotapp.com/kb/1117/bWFuaGF0dGFu/JqQD/AGVW4Dp-zUoVqgkI.jpg)
Option 2: Add directly to the header.php file
1. Go to "Appearance", then "Editor", then "header.php".
2. Search for </head>.
3. Paste the tracking code before the closing </head> tag.
![](https://ic.autopilotapp.com/kb/768/bWFuaGF0dGFu/W-ss/AGVW4E1-zUoVqg0M.jpg)
4. Save the code by clicking "Update File".
![](https://ic.autopilotapp.com/kb/162/bWFuaGF0dGFu/80Eb/AGVW4FR-zUoVqg8O.jpg)
That's it! If you need any further assistance, please contact support.