A friend of mine asked me to put google analytics on this site. http://safecohomeinspections.com/index.html Right above the /head tag I copied and pasted the code and uploaded everything. It didn’t work. All of the borders and containers and colors went away. So I had to do a restore, hopefully that is completed by morning. To add the code I opened them up in Dreamweaver and pasted. When I saved it I was asked would you like to update links? I put no, I didn’t want to change any existing code. Any ideas on what happened? And how to fix this in this future?

 

Edit: The site is now back to where it should be. What is the easiest way to get analytics on here since what I tried last time didn’t work so great.

|||

Make a duplicate of the page and try to insert the Google code again then if it repeats the same issue as before upload the duplicate so we can see what happens. Not much point in linking to a page which doesn’t show the problem.

 

If you insert the code correctly it will not affect anything so one can only assume you messed something up when you inserted the code.

|||

Edit: The site is now back to where it should be. What is the easiest way to get analytics on here since what I tried last time didn’t work so great.

As Osgood says, we need a link to a problem page rather than a working one where you haven’t yet inserted the GA code. We have no idea what you did wrong last time so it’s hard to advise what to do (other than follow the GA instructions).

|||

I won’t echo what the others said.  You don’t need to post a bad page because that page has enough problems where if you try to insert any code it could throw off the page.  When you run the page through the validator you will see that:

 

-You have an invalid document type

-You have no endings to the tags in your head (eg: meta, link, etc.)

 

In addition you have invalid code throughout your page:

 

-Bad break tags

-Divs inside of A tags which are not valid, the A has to be inside the Div

-Quotes missing around defined values (eg: width=280 instead of width=”280″

 

Fixing those errors should allow you to use the Google Analytics code.

 

If fixing those does not solve your issue, then you will need to post a link with the Analytics code not working. 

|||

The reason the code didn’t work is that someone went in their to “clean up” files, didn’t tell me, and deleted the css files. Next time I’ll check that first or not let anyone else have access. I want to try this again. When I saved I didn’t hit update the links, because I didn’t change anything with the links. Is that correct?

|||

tyler.jensen821 wrote:

 

The reason the code didn’t work is that someone went in their to “clean up” files, didn’t tell me, and deleted the css files.

 

yeah those office cleaners – keep them away from the tables.

 

tyler.jensen821 wrote:

 

When I saved I didn’t hit update the links, because I didn’t change anything with the links. Is that correct?

 

Sounds about right to me. if you didn’t changes any links or move any pages around the site folder there’s none to update.

Related posts:

  1. Mouseovers not working on webpage
  2. Adding the latest Facebook comments on my webpage…feasible?
  3. Putting Google maps on my Website
  4. DPS Analytics – Kick start questions
  5. Interpreting DPS Pro analytics

Related posts brought to you by Yet Another Related Posts Plugin.

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

   
© 2012 free icons download Suffusion theme by Sayontan Sinha

Featuring Recent Posts WordPress Widget development by YD