This article will guide you through the process of adding custom scripts into the <head> section of your website.

Step-by-step guide

  1. In the Magento Admin Panel, go to to Content > Design > Configuration
    19006744.png
  2. In the configuration record corresponding to your store view, click Edit.
    1. In most cases, this will be the third row in the table.
  3. Scroll down and navigate to Other Settings > HTML Head > Scripts and Style Sheets.
    Scripts.png
  4. Copy and paste your script into the text box.
  5. In the upper right hand corner, press Save Configuration.
  6. Clear cache.

Related articles