Log in to your WordPress account.
In the left side menu, click Plugins and then select Add New.
Search for "Insert Headers and Footers" in the Search Plugins… input field.
Install the official "Insert Headers and Footers" plugin by clicking Install Now, and then Activate.
Click Settings and then "Insert Headers and Footers".
Paste the script you copied from your dashboard to this box: