Paste Google code into template?

Hi all – I am trying to get my company site recognized by Google's tracking software. I am using templates, and trying to paste the code into the master template. The code as viewed in my Dreamweaver file is multi-colored and I cannot paste into the place where it is needed. Can you tell me why this is, and more importantly, how to remedy the situation?

Here it is to the </head> tag. I think I've included all the important code (since Google wants their code put in before </head>.).
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<meta name="alexaVerifyID" content="95U4t0_M0WeCXeUdZ-WPwQzaUAc" /><html>
<link href="../black text.css" rel="stylesheet" type="text/css"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
<style type="text/css">
<!--
body,td,th {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #006600;
body {
background-color: #CCCCCC;
background-image: url();
margin-left: .5in;
margin-top: .5in;
margin-right: .5in;
margin-bottom: .5in;
font-family: Arial, Helvetica, sans-serif;
font-size: 9px;
font-style: normal;
a {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #0000CC;
font-weight: bold;
a:visited {
color: #FFFFFF;
text-decoration: none;
a:link {
color: #006600;
text-decoration: none;
a:hover {
text-decoration: none;
a:active {
text-decoration: none;
.phone {
font-size: 16px;
.phone {
text-align: center;
-->
</style></head>
<body>
I copied it directly from the code. I don't know if this matters or not, but the code is multi-colored, which didn't come through in the pasting. I appreciate your help...

Similar Messages

  • Paste html code into dreamweaver 8

    I'm creating my 1st website in Dreamweaver 8, and am trying
    to include a photo gallery. I haven't got as far as learning Flash
    yet, but Ive found a piece of html code that will do what I want
    and am now trying to place it on my dreamweaver file. I don't know
    how to do this though, can anyone help please?
    Many thanks
    Nic

    i think maybe you have answered your own question in your
    title.
    simply copy the html code from where ever it is and paste it
    into your DW page. paste it in using the code view though not the
    design view in DW.
    if your not sure where abouts to paste it in the code view
    then just go to design view and with your mouse select with one
    click on the area of page that you want the gallery to go, for
    example in the right cell of your table. then go back to code view
    and you'll see that the curser will be in the right place - then
    paste!
    hope this helps
    zac

  • How do I paste a snippet of HTML code into my website

    I downloaded HTML code that creates a clock with the date & time to paste into my website. How do I paste the code into the site?
    I tried pasting the code onto the page in iWeb and it just shows up as if its just text.

    Yes, though I don't know if it applies to exactly what you want to do:
    http://alyeska.altervista.org/en/iWeb_Forms.html

  • Pasting javascript widgets into pages

    is there any way yet to paste javascript code into pages using iweb 09?
    i've tried pasting sharethis code using the insert html widget function, instead, it appears is it pasted into a separate html file (which includes headers and all) that is in the download_files folder...
    all work-arounds i've seen so far include copy-pasting it into the actual html code outside iweb and having to re-do this everytime you make changes.
    kinda clumsy to be honest....
    any way around this?
    \

    is there any way yet to paste javascript code into pages using iweb 09?
    It's depend on how/what the javascript code is implemented.
    i've tried pasting sharethis code using the insert html widget function, instead, it appears is it pasted into a separate html file (which includes headers and all) that is in the download_files folder...
    That's how HTML Snippet widget works, it does not add the codes to the page but to another page called widget#_markup.html thru an iframe.
    Most people do not know this (or ignore to) and make the common mistakes... have their StatCounter or Google Analytical codes track the wrong pages.
    all work-arounds i've seen so far include copy-pasting it into the actual html code outside iweb and having to re-do this everytime you make changes.
    kinda clumsy to be honest....
    You know it... post editing after every publishing... is clumsy, old, oh so yesterday...
    any way around this?
    Yes, build your own iweb3 widgets, this pretty much answer your first question.
    However... AFAIK, I am the only one (as far) builds iweb widgets (in iweb3 context), google my page (cyclosaurus.com)... you find sharethis widget is on upper left corner.
    All javascript is linked to my page... sorry, I don't do tutorial nor how-to.

  • Copy HTML Code into DW?

    In CS6 I create a simple rectangle and increase the roundness of the rectangle. I then select the shape and choose edit > copy HTML code and I open Dreamweaver CS6 and paste the code into the code window. I thought it was supposed to write code to replicate the shape I created in FW, though instead it is just referencing a graphic of the shape I made in FW that was exported. What did I do wrong?
    Thanks.

    Use the CSS Properties panel, not Edit > Copy HTML Code.
    Create the rectangle
    Make sure it's selected
    Open the CSS propreties panel
    Click the Copy All button
    Go to Dreamweaver
    Create a Div and apply a class to the div
    Create a CSS class and within the rule, press Ctrl or Command + V to paste the CSS properties from Fireworks.
    Refresh the page (and switch to Live View) and you should see the rectangle, with all the supported visual properties, displayed using CSS.
    HTH

  • Help! typed a code into Terminal and not Microsoft Word is all messed up

    Hi everyone!
    I'm hoping (really hoping!) someone will be able to help me.
    I wanted my MAC desktop to save screenshots as JPEG images. (For a book cover I'm trying to design myself)
    So I found an online "E-How" article that suggested I copy and paste two codes into the "Terminal." I did and it worked.
    However, when I opened up MS Word ('11) for MAC, now my Word is completely messed up.  It has only about 30 fonts to choose from, it doesn't recognize the most basic commands.
    How do I undo that Code I typed into the Terminal and get my desktop back to how it was???
    Thanks!!

    Hello, it's unlikely those commands directly caused your Word problem.
    Bootup holding CMD+r, or the Option/alt key to boot from the Restore partition & use Disk Utility from there to Repair the Disk, then Repair Permissions.
    Any change?

  • Convert vbs code into a standard template

    Appreciate if anyone can guide/show me on how to convert or copy the original vbs code into a standard template. I have tried copy and paste all the code into Sub Main but been getting errors. FYI, i have taken out all the function section and placed it
    outside Sub Main but still getting error. Appreciate some help here. Thanks in advance.

    Sorry, but you can't just copy and paste code between scripts and expect things to just somehow work.
    You have to understand what the code is doing and how to write in that language.
    What you are asking still doesn't make sense. We don't know what your "agreed format" is, and even if we did, it is not the purpose of this forum to merge your scripts for you.
    If this is critical work you need to complete, you need to study how to write scripts or hire a consultant.
    Bill

  • Copy & pasting a Google code

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

    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. 

  • CS5: Pasting smart quotes into code view problem

    Hi all,
    In my blogging workflow, I copy the blog text from from MacJournal into the code view in Dreamweaver CS5.  In CS3, it seems that DW allowed the left & right smart and unicode quotes to be pasted in untouched.  However, DW CS5 seems to be converting all single ‘ & ’ to the ASCII ' and all “ & ” to ASCII ".  Is there a way to turn this off?
    I don't want to paste the text into the design view because I don't want DW to auto format the text.  I got some specific formatting that I like to do.
    Thanks!
    Steven

    Yes, the appropriate meta tag is in place.  In Preferences, UTF-8 is selected under Fonts.  Try pasting:
    “Test”
    into the code view and see what happens.  Hmm, Just tried pasting the above into the Design View and the same thing happened.  The curly quotes where changed into straight quotes.  BTW, I'm runn ing DW under Mac OS X Lion.
    I pasted the same text in another app, TextEdit, and the curly quotes pasted just fine.
    I need the curly quotes because I change them into &#8216;, &#8217;, &#8220;, and &#8221; (‘ ’ “ ”) for compatibility with older browsers (pre-IE6).  Yes, my site has been visited by such older browsers.
    Thanks!
    Steven

  • Problem in copy and paste html code generated from google adsense

    tell me where can i paste the html code in mozila .
    I am having account in googlemadsense and whenever i try to copy and go to paste in html it dosent work.please reply me.

    Hi Thanks for reply,but my dear freind as I written in my previous mail also that I am having account in google adsense and as per the given instructions only,when i try to paste the html code,which was generated from their adsense adposting , i try to paste that code after opening the html sources box,that code was not accepted.The html source window was slightly blocked.
    And for your information i am not try to paste any other code from any otherwebsite like word press etc
    Waiting for your reply soon.
    Kavitha

  • Pasting code into iWeb

    Hi there. I'm trying to install JSKit Echo (comments) into my webpage, using iWeb through an FTP server. I need to paste an HTML snippet onto the homepage to proceed, but I can't! For some reason it just won't 'stick'. I've pasted other snippets in with no problem. Baffled! Anyone got any thoughts?

    If you paste the code in a HTML Snippet, you will not see anything in the widget. Not with this code. Not in iWeb. Publish, js-kit Echo is displayed on your website.
    You have to enlarge this 'empty' widget before publishing (height ~1500 px. you will have to enlarge more later)
    I use [Js-kit Echo|http://iweb.debutersurmac.com/siteiweb/Blog/Entrees/2009/7/23_Commentaires .html#widget0] and [IntenseDebate|http://iweb.debutersurmac.com/siteiweb/Blog/Entrees/2010/3/21Commentaires_gratuits_surFTP.html] on my (french) website.

  • Pasting Code into this forum

    Hi, I'm a noob. How do I paste code into a discussion, and have it actually look like code.
    Thanks!

    The {code} block doesn't wrap long lines, but it does add a scroll bar if the line gets too long (really long).
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 480px;
    color: #000000;
    background-color: #B5FF6C;
    overflow: auto;">
    I use an AppleScript that's been tweaked over time to add various formatting</pre>
    - it uses an HTML <pre> block. The script has several options, including the color and size of the block (I like to keep messages relatively small) - it is available here.
    rccharles also posted a script in the User Tips Library with similar ideas (and a message reply link formatter I borrowed).

  • Pasting code into Keynote

    Hi - does anyone have any tips on pasting code directly into Keynote from xCode. By simply copying and pasting it seems to screw up all the tabs. Thanks in advance.

    Not sure why it isn't working for you; it's working fine for me. The other thing you could try is converting the tabs to leading whitespaces.
    In Xcode you can set the preferences so that the editor uses leading whitespaces instead of tabs. This makes it much easier to copy and paste code from one app into another. There are two places where you can specify these settings. One is under Preferences>Indentation and the other is under Preferences>Text Editing (deselect the box that says "Editor uses tabs"). You can specify the number of spaces for each tab, etc...
    The above will only apply to any new code you write, so to convert the tabs in an existing document, do a Find/Replace operation within Xcode. Under the Find Options select "Regular Expression" and search for "\t" and replace with " " (four whitespaces or as many as you desire).
    A mixture of whitespaces and tabs can cause funkiness so be sure you replace all tabs before pasting the text into Keyntote.
    Hope that helps.
    Vid

  • Including html code into my iWeb site

    Hi,
    I would like to include googles Analytics tracking code to my website. In order to do this, they say I have to
    "Copy and paste the code segment into the bottom of your content, immediately before the </body> tag of each page you are planning to track. If you use a common include or template, you can enter it there. "
    What does that mean? And can I do that in IWeb?
    Thanks for a reply,
    Anne Wertheim

    I'm not totally sure what you are asking, but I do know this> Go to Insert: HTML Snippet... copy and paste the HTML code there...and it should work.. .just about ANY html did it on mine.
    Even the counters...but now I'm hosting with mobilme... propietarty, but works.... try it.
    Is that what you are asking?

  • Add Google analytics to template (was: analytics and templates)

    how can I incorporate google analytics into my template based website. Can I directly paste the snippet into the template and it will work on all pages?

    Yes.  If you are using DW templates, I would recommend keeping it in an uneditable region of the template so that the code cannot be altered.

Maybe you are looking for

  • HDV Print to Video

    Have read all threads for the last year on this, and have not been able to Print to Video. It starts fine, transfers via FW to my Sony FX-1. After about 2-4 min. it starts freezing for a split second, then jumps forward, only to freeze again every fe

  • Text missing when printing PDF

    We're having a problem with printing PDFs to our networked large format Canon ipf8000 printer from our Mac Pros. We have two Mac Pros, both are having the same problem. When printing a PDF through Acrobat Pro that we have created using either from Ad

  • Master with many details form best layout

    Hi, I have one master table, and 5 detail tables. I need to build a form (or more) to maintain these tables . What is the best layout for this form ? should I use tab pages (generally not friendly) ? should I use separate forms ? Any best practices?

  • Does CallerLineNumberAttribute replace #line directive?

    My understanding to #line directive  is to hardcode the line number in the code. But since after .net 4.5, we have CallerLineNumberAttribute. Can we ignore #line directive and mark it as a legacy skill?

  • I keep hearing a "salt shaker" sound on my mac.  It sounds like a "shake shake".  What is that all about?

    This weird sound has been going on for a long time on my computer.  It sounds like the "shake shake" of a salt shaker.  Has anyone ever heard of this.  It was on my older Mac and when they transferred the information on to my new computer, it continu