Magento: SEO add a temporary script or tag

magento button Magento:  SEO add a temporary script or tagIf you are using a tool that asks you to place a tag or script onto your homepage or in every page so that it can track affiliate links or other useful SEO data, you may want to dig into your theme and add it to your header.phtml file.

But on the other hand, you may not.  And sometimes you just need to add a meta tag to show that you own the site to Google or some other entity that tries to make sure it only tracks legitimate data and sites.  And you only need to add it for a verification cycle.

Now digging into your header.phtml is just tedious.

(And its even worse, if you don’t have access to the commandline where your Magento store is hosted.  Now you are talking about calling your hosting guy, and asking him to do this for you.)

Well, magento has a way to handle this without digging into and editing a file in your theme or calling your hosting guy.  Here is how it works:

1.  Login to the admin panel

Magento System Menu Magento:  SEO add a temporary script or tag

2.  go to system>configuration

BrowseSystemConfig Magento:  SEO add a temporary script or tag

3.  Click on the Design menu on the left

Magento Design Menu Magento:  SEO add a temporary script or tag

4.  Open the HTML Header menu

Magento Design HTML Magento:  SEO add a temporary script or tag

5.  And look for a text box labled “Miscellaneous scripts”

Magento Design HTML Misc Script Magento:  SEO add a temporary script or tag

6.  Drop your temparary tag (or not so temporary) into this field, and click the save config button.

magento save config Magento:  SEO add a temporary script or tag

7.  Now go to your front page, view the source and make sure it looks like you expected and you are off to the races.

Dropping a meta tag or a bit of javascript on your site may not seem important most of the time.  But when a simple task is standing between you and the results you need, its good to have a quick and easy way to get the job done.

While you are in the Design section, take a look around and see what other configuration tidbits Magento has to offer that you may have forgotten about.

Subscribe to "The Integration Engineer" by Email
Find out about the tools and services available at The Integration Engineer's Consulting site.

Related Articles:

2 Responses to “Magento: SEO add a temporary script or tag”

  1. Behruz Says:

    Nice article. I tried to add a web visitor counter, so I pasted a short code which I found on the web, I saved it, and after it said that it was saved, nothing happens on my web page, also on magento the code just isn’t there (as if it disappeared all by it self). Any suggestions?

  2. Roy Says:

    Behruz,

    I am not sure what “visitor counter” you are using. If you are trying to add some html code that will actually be displayed to the site visitor, then this is the wrong place to add that code.

    If I understand what you are trying to do, you may need to either install the visitor counter in a widget that you can put in one of the CMS pages, or and edit to the theme.

    Send me a longer description of what you are doing to roy@theIntegrationEngineer.com and I will see what i can come up with.

Leave a Reply

Powered by WP Robot