How to Add Global Scripts to Your Website

How to Add Global Scripts to Your Website

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 toContent>Design>Configuration
    19006744.png
  2. In the configuration record corresponding to your store view, clickEdit.
    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, pressSave Configuration.
  6. Clear cache.

Related articles



    • Related Articles

    • How to Add Notices, Promotional Text, or Custom Scripts to Specific Pages with Widgets

      This article will guide you through setting up a notice, promotional text, or custom scripts to a specific page. For example, this article would be useful if you would like to add a banner or custom script on the cart or checkout page. This article ...
    • How to add HTML Code to Pages

      This article covers how to add HTML code that works in the header of all pages of the store's website. This feature is useful for many things, including adding scripts and links for targeting pixels, campaigns, branding, and more. Navigation 1. Log ...
    • How to Add/Modify Homepage Slideshow - Porto

      This article covers the basics of adding and modifying the slide contents on your homepage. Please note that this tutorial only applies to Porto Themes actively installed. Your slider(s) on the homepage is powered by a JQuery plugin calledOWL ...
    • How to Add a Brand

      This tutorial will require the shop by brands add on. This allows customers to shop by a specific attribute in your store. It can let customer shop by the brands offered in your store, but also allows you to select something else to sort by. If you ...
    • How to Add Category Information

      This article will guide you through the steps of adding category information to the website. Step-by-step guide Go to Catalog → Categories and select the category you would like to edit. Once a category has been synced from Counterpoint, you can ...