Why does my Google Analytics code disappear from my Dreamweaver Template when put online?

We have a fairly simple website setup. It uses Dreamweaver templates. We wanted to implement Google Analytics which should be easy enough.

I didn't design the site originally so I'll go through my thought process:

Google Analytics says to put the code before the </body> part of the html code.
If I open up a page, such as contactUs.html for example, there is a large chunk of uneditable code at the beginning and the end. This is the Dreamweaver template and it contains the </body> code.

Thus I close that html file and open up the Dreamweaver template and edit that instead. I then close it and open back up the contactUs.html file and voila, the code is right there where it should be.

Easy right? Well I then upload the files to my web server and I notice that Google Analytics isn't really tracking. Something is amiss. I go to the web page and do a right click>view source and the Google Analytics code is NOT showing up. What the heck?

So I re-download the file and view it again in Dreamweaver and, voila, the code is back.

So it appears something is filtering out the code when it's on the web server, but that the code is still actually sitting in the Template.

Any ideas? Thanks!
MadGeniusIncAsked:
Who is Participating?
 
Tony McCreathTechnical SEO ConsultantCommented:
Its been years since I touched Dreamweaver

Don't you have to do some sort of template update so all the files using the template pick up the changes
0
 
MadGeniusIncAuthor Commented:
That was it!

Went to Modify>Templates>Update Pages...

...and voila! Make sure you have a correct "site" defined.

Thanks!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.