- Log in to your Magento back end.
- From the main navigation bar, select System ยป Configuration.
- Next, select the Design item in the sidebar menu.
- If collapsed, expand the HTML Head section.
- Paste your code snippet in the Miscellaneous Scripts text box.