Option 1: Use a plugin
- Option 1: Use a plugin.
- Go to the configuration panel of the plugin.
- 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":
- Option 2: Add directly to the header.php file.