×

Switch Account

copy & pasting a Google code

Reply
Highlighted
Copper Contributor
Copper Contributor
Posts: 21
Registered: ‎01-31-2011

copy & pasting a Google code

Message 1 of 3
(521 Views)

    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 ><   ? 

2 REPLIES 2
Highlighted
Copper Contributor
Copper Contributor
Posts: 21
Registered: ‎01-31-2011

Re: copy & pasting a Google code

Message 2 of 3
(501 Views)

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!!

Highlighted
Silver Contributor II
Silver Contributor II
Posts: 333
Registered: ‎02-14-2012

Re: copy & pasting a Google code

Message 3 of 3
(478 Views)

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. 

How-To Videos
 
The following videos were produced by users like you!
   
Videos are subject to the Verizon Fios Community Terms of Service and User Guidelines and contains content that is not created by Verizon.
Covid19


Browse Categories
Categories:
Posts

Verizon Troubleshooters
Unable to find your answer here? Try searching Verizon Troubleshooters for more options.