How to Add Global Scripts to Your Website

Modified on Thu, 26 Jan, 2023 at 4:08 PM

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



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article