(Note: Many WordPress plugins are capable of adding a script to your site. These instructions use Insert Headers and Footers by WPBeginner, and should work for most WordPress installations. If your WordPress site is more complex or customized, a different procedure might be necessary.)
Step 1: Add a New Plugin
Click Plugins on the left navigation bar of your WordPress console, then Add New.
Step 2: Install the Plugin
If you search for “headers and footers”, it the Insert Headers and Footers plugin should appear in the search results. Click Install Now.
Step 3: Activate the Plugin
It’s not enough just to install a plugin; you have to activate it as well. Click Activate, and you’ll be able to use the plugin.
Step 4: (In Hawk) Copy the Hawk Snippet
(For information on where to find the Hawk snippet, see our installation documentation.)
If you’re in the Hawk Add Site wizard, the snippet can be found in step 4. Otherwise, you can find the snippet by navigating to the Snippet tab of your individual site’s settings page. Copy the entire snippet to your clipboard.
Step 5: (In WordPress) Navigate to Insert Headers and Footers
Under Settings on the left navigation bar of your WordPress console, there will be a new Insert Headers and Footers link. Click it.
Step 6: Paste the Hawk Snippet
In the text input box labeled Scripts in Footer, paste the Hawk snippet, then click Save