copy & pasting a Google code
MIKE7772
Enthusiast - Level 3

    I am getting ready to copy & paste Google Analytic's tracking code (for a single domain) so that my website can be tracked by Google Analytics.  However, on one of the instruction pages the following is stated:   "Be sure to copy the snippet and paste it directly onto your website using either a text editor or an editor that preserves code formatting.  We recommend that you do not use a word processor to copy the snippet from your account.  Doing so can add an extra space or change the quotation marks in the tracking snippet, which requires precise formatting in order to work."  
    Well, I'm pretty ignorant about computer terminology.  Is the previous statement saying that it is not advisable to use your comuter's mouse to copy the code and then directly paste it onto each page of my website?
    Furthermore, I'm suppose to paste it immediately prior to the closing </head>  tag.   On most (or all) of my website pages, the closing </head>  tag is immediately preceded by >        So should I paste the Google code BETWEEN       the ><   ? 

0 Likes
Re: copy & pasting a Google code
MIKE7772
Enthusiast - Level 3

Sorry about my misspelling of "computer" in my posted question.   I said "comuter's mouse" instead of "computer's mouse."

I'd greatly appreciate help with my question.

Thanks!!

0 Likes
Re: copy & pasting a Google code
beetlejuice2
Specialist - Level 1

Mike what they are saying is dont use a word processing program to copy and paste it because it will space out the coding improperly. I honestly dont know who would do that anyways. You can copy and paste with a mouse.

The code just as it is to be copied gets pasted anywhere after the <head> and before the closing </head> tags.

You dont have to paste it on every page just the index page.

You can look into using statcounter (statcounter.com)  as well. I find it easier to work with. Its still good to use the google one though because google uses it to help index the pages into their search engine so its a plus. I use both google and statcounter.