cancel
Showing results for 
Search instead for 
Did you mean: 

Google SEO help needed

odinnovations
Member

I have a BT hosted website using easysite pro.  I am not at all technical so really need help in plain english.  I am trying to use the google SEO and it says:

"1. Control and tracking script

Place the control and tracking script immediately after the opening <head> tag in your original page's source code. Do not put this script in a shared header, or in any file other than the original page."

I do not understand what it means, where do I paste this?  I do not understand "source code" do I have one and if so on the easy site where do I find this?

Please help!!!!!!

Angela

1 ACCEPTED SOLUTION

Accepted Solutions

Sogo7
Grand Master

Hi Angela,

 

Look for a tab marked view or  HTML view, I forget which one it is as I don't code my sites using that particular package however somewhere there is a button that will switch the view from the graphical design (What you see is what you get) layout to the source code.. computers have no eyes so must use words  to describe what needs doing that's all source code is.

 

What you are looking for will be somewhere in the top half of the text and looks like this..

 

</head>

 

that's the closing tag, so your tracking code goes like this..

 

<script type="text/javascript" >

var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-xxxxxxxxxx']);// use your own tracking code
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src=('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

 

</head>

 

Have fun, we'll make a webmistress of you yet!

 

Lovelogic.net UK Jobs Scanner

View solution in original post

7 REPLIES 7

Sogo7
Grand Master

Hi Angela,

 

Look for a tab marked view or  HTML view, I forget which one it is as I don't code my sites using that particular package however somewhere there is a button that will switch the view from the graphical design (What you see is what you get) layout to the source code.. computers have no eyes so must use words  to describe what needs doing that's all source code is.

 

What you are looking for will be somewhere in the top half of the text and looks like this..

 

</head>

 

that's the closing tag, so your tracking code goes like this..

 

<script type="text/javascript" >

var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-xxxxxxxxxx']);// use your own tracking code
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src=('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

 

</head>

 

Have fun, we'll make a webmistress of you yet!

 

Lovelogic.net UK Jobs Scanner

duskjome
BT Partner
BT Partner

Everything Sogo7 says looks good, as far as I can tell, the option you are looking for is called "edit head tag" and it is in the easy site wizard on the top center in the editor. The button looks like two gears and if you click it it will give you access to the HTML/CSS for the site and menu as well and the meta and head tag.

odinnovations
Member

First can I thank

Power User
Sogo7 and
BT Partner
duskjome
For their help, all in easy to understand language.  I have spent the morning adding the google tags however when I tried to validate the experiment it kept telling me that I had pasted something wrong in the control page.  I must have copied and pasted their text 20 times.  All other pages are right & validated.  I have checked that I copied the correct text but still no go.  Any suggestions? 
From a very irritated Angela

Sogo7
Grand Master

OK, this page that does not validate.. are you able to upload it to the web where we  can take a look at it?

 

 

The other thing to remember that it is not vital for a webpage to comform  with the rules of strict validation. It's the computer equivelent of writing an essay in pitman shorthand and being marked down for bad grammar and punctuation.

 

If the page works and looks the way you want that's all you need be worried about.

Lovelogic.net UK Jobs Scanner

odinnovations
Member

Not sure what you mean by take a look, the website is odinnovations.org.uk

Sogo7
Grand Master

Had a look at the site (it's not bad for a beginer by the way) and ran it through the W3C Markup Validation Service as I suspected your website has numerous errors that prevent it from validating. These are not your fault, the problem is with the way that the site building package has assembled the source code.

 

I must stress that the source code is perfectly acceptable and should work fine on any modern web browser. I've checked it on IE9, Firefox and Chrome but not Safari on a Mac and aside from a few minor cross browser niggles it's all good.

 

Furthermore Google will have no trouble indexing your site, though it does help speed things up if you submit a sitemap to them. Annoyingly this is not part of Analytics and the option is in the 'Webmaster Tools' section of your Google account.

 

Why it fails validation is not easy to explain but it is largely due to the fact that the 'inline' style favouerd by website building packages makes very bloated and long winded reading.

 

For example with a site builder every time you create a new paragraph the site builder adds styling information to that specific paragraph. Telling it what font to use , what size, text colour, specifying line hieghts, background colour and so on every time one is created.  As all your paragraphs look the same across the site so the same information is repeated over and over again. Using empty paragraphs to achieve spacing is also something it loathes with a passion.

 

What the validation service would ideally like to see is a single statement saying basically 'All paragraphs look like this', so you have one set of instructions being used repeatedly. This makes for smaller file sizes and it also means that to change the appearence of every paragraph requires changing just one line of code not dozens.

 

Sadly the ability to write this more elegant kind of source code is beyond the capabilities of a WYSIWYG (what you see is what you get) site builder and you need to either learn HTML and CSS yourself from the ground up or hire somebody who has has gone grey with the stress of learining it already.

 

 

 

 

 

Lovelogic.net UK Jobs Scanner

odinnovations
Member

Thanks for all your help