Add Google Analytics code to your entire website in a flash

Some people love dreamweaver. Some people hate it. I personally have found it to be greatly useful. I never leave the code view, as the design view is completely pointless, and almost never reflects what the page will actually look like.

Here’s one really neat thing you can do. There is a find and replace feature (CTRL-F) in dreamweaver that can take all files in your site, and replace one piece of text with another. This has many uses, but my favorite is this one:

Find in: Entire Current Local Site
Search:
Source Code
Find:
</body>
Replace:
*analytics code* </body>

Find and Replace
Click to enlarge thumbnail

You can add the code to hundreds of pages at once. All you have to do is a synchronize after that, and BAM, you’re done.The only caveat, is that if you don’t have the entire site on your local hard drive… well… you can’t do it. See the previous post for my rant on that, and how to get me to send you five bucks if you tell me how to do it.

This entry was posted in development and tagged , , . Bookmark the permalink.

One Response to Add Google Analytics code to your entire website in a flash

  1. Liga says:

    “All you have to do is a synchronize after that, and BAM, you’re done.”

    Could you please explain what did you mean by synchronizing?

Leave a Reply

Your email address will not be published. Required fields are marked *

*

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>

Powered by WP Hashcash

Subscribe without commenting