Monday, January 19, 2009

howto: enable metrics for analyzing your web traffic

Google Analytics is a free set of tools you can use to analyze your traffic. It's really intended for commercial web sites, but using it for your blog will help you understand who's visiting, from where, and how they found your site.

It's easy to get started. Go to their website and sign up. The site walks you through the steps you need to take. They provide a javascript snippet of code you place into your blog template. Once it's there, they collect information about your site and give you a variety of different methods to analyze the data. It's really that easy, and it's free!

Google Analytics has a blog of their own in which they discuss new tooling and tips. They also have case studies if you're curious how others use the data they make available to you.

I launched this new blog a little over two weeks ago. Just to give you an example of the type of information available,  as of yesterday, I've had 47 unique visitors from 42 cities in 13 countries. Google AnalyticsI can see which keywords brought them to my site. I can even see which browsers and operating systems they were using. For example, I've had five hits from four cities in Canada, and they were using three different browsers (Firefox, IE, and Safari) running Windows, Linux, and MacOS. I also know their screen resolutions, versions of Flash, and connection speed. I can sort this data by pie charts, bar charts, or percentages.

Why does any of this matter? Well, if you want to tune your site to attract and retain readers, information like this is invaluable. For now, I’m just curious who’s visiting, so I’m focusing more on which keywords are attracting traffic and where my readers are located. If I ever needed to take this to the next level and test various scenarios of text phrases, graphics, or layouts, I could do all of it with Google Analytics and see which combinations work best.

I highly recommend Google Analytics.

filed under: ,

Saturday, January 10, 2009

howto: backup ie favorites (bookmarks)

In my last post, howto: future-proof your user data when switching, I explained how I keep my data on a separate logical drive.
One thing you'll miss dearly if your computer ever has a problem (and you lose your C drive) is your bookmarks. Firefox has backup and restore mechanisms integrated, making it easy to back up your bookmarks. But even while Microsoft grimaces, most of the business world still uses Internet Explorer 6. Here's some code you can implement to keep a reliable backup of your IE favorites:
/S /Q D:\Data\BookmarksBackup
mkdir D:\Data\BookmarksBackup
c:
cd C:\Documents and Settings\your_windows_username\
xcopy Favorites D:\Data\BookmarksBackup\ /Y /E
exit

ie-optionsFirst, you need to ensure you can see file extensions in Windows Explorer. To do this, open it, then select Tools -> Folder Options -> View -> and untick the box for "Hide extensions for known file types."

Next, place the text into your favorite text editor (I usually use Notepad for something like this) and save it on your D drive. Once saved, open Windows Explorer and change the file extension to .bat (batch file).




taskIn the Windows Control Panel, find the Scheduled Tasks application. Select Add Scheduled Task -> Next -> Browse (and locate the file) -> select how often you'd like to backup the bookmarks (I selected Daily) -> select what time you'd like this to run each day (choose a time when the computer is typically on) -> enter your Windows password -> Finish.
Now you have a scheduled task which will backup your latest bookmarks for you as often as you'd like.

Wednesday, January 7, 2009

howto: future-proof your user data when switching operating systems

I use Windows XP. But someday, I may switch to Windows Vista, or maybe one of the many flavors of Linux. It will be an easy change for me because of the way I installed Windows in the first place. If you follow this tip, you'll be thanking yourself for the entire lifetime of your computer. Below is a high level overview of this concept, so be sure to explore what you may need to consider before doing this, and if possible, try this on an older machine first to test your process. I've done this so many times for myself, friends, and family, I'll be writing this from memory.

Hard DriveSo here’s the summary: Install your Operating System (OS) on a C drive, store all your data on a D drive, and optionally store your computer images on an E drive. This could also be worded as install your OS on a bootable partition, and leave other partitions for your user data. To keep this less confusing, I should mention up front I always change my CD/DVD drive mapping to use the letter Z as soon as I install my OS.
If you're thinking your computer has only a single drive and this isn't for you, the term Drive is simply a holdover from the earlier days of computing. The hard drive is actually comprised of partitions, or segments reserved for data. Many computers ship from the manufacturer with a single partition, and thus a single "drive." A single partition gives you fits when you try to change your OS because your user data is mingled with your applications which are mingled with your OS.

The first thing you need to do when you get a new computer (or plan to upgrade an existing one) is make sure you have another computer and USB memory stick close by. You'll also need the Operating System you plan to install on it's own CD/DVD. For a new computer, begin by booting from the CD/DVD. Once it's loaded into memory, it will give you a chance to repair the current OS or install from scratch.

Start by removing all the partitions on the hard drive. Windows will warn you about the dangers of doing this, and I imagine other OS types will as well. The computer can't boot without an OS, so it's a fair warning for someone who may not understand what they're doing. Once absolved of all your partitions, you'll be presented with the opportunity to create a new partition for the installation. Instead of accepting the size it proposes, which is usually all the available disk space, use a smaller number leaving some of the drive space for other data. I've gotten by for years on XP (on my laptop) on a 12 GB partition (1024x12=12288), but as drives have grown larger, so has the space I've allocated. My current laptop build uses a 25 GB partition for C (on a 100 GB drive) and even now it's only half full. The point in doing this is to keep your OS and applications installed on the C drive, leaving another logical drive (or drives) for your other data.

As you install your OS, you may need drivers to enable networking services (once on the network, you can use your computer to download any other drivers you may need). Remember, the Operating System is almost always older than the hardware you're using, so finding and fetching drivers isn't unusual. Having another working computer and USB memory stick nearby will be helpful to download drivers and copy them over to the computer needing them.

Once the OS is completely installed (along with all the device drivers and OS updates), you're nearly done. If you haven't already, go ahead and create new partition(s) from the remaining space on the hard drive. This will give you a D or even an E drive (remember, part of my installation process is to map the CD/DVD to the letter Z). You can make as many new partitions as you like. I found two additional partitions are fine for everything I need.

Install your applications onto the C drive just like your OS. As you run each program for the first time, move the default "save as" file locations to your newly created D drive (or just move the physical location of "My Documents" to your D drive if you don't mind using all defaults - an easy right click option). Now any application which saves automatically to "My Documents" will be safely stored on your D drive. Because the D drive is on a separate partition, it's now possible reformat your C drive as many times as you want, or even completely change your OS, and you'll never be at risk of losing any of your data (files, music, pictures, etc). I use a third partition, an E drive, to store my computer images. I'll explain all about this in a future post.

If you have an existing computer and wish to change Operating Systems or just re-install it, my recommendation is to buy a USB enclosure and a brand new hard drive. You'll need a reasonably large sized drive to migrate your user data anyway, so if you pull the existing drive and install it into a USB enclosure, you can use the new (and probably larger, faster) drive in the computer. Once the new drive is installed, it won't have an OS on it and this process begins right at the point in which you choose the size of the primary partition. Once installed, connect the old drive via the USB enclosure, and copy your user data files wherever you'd like them. When you're done, reformat the drive in the USB enclosure and use it for backups of the files on your D drive (or wherever you place them). Now if the hard drive in your computer fails, you'll at least have your data saved externally.

Friday, January 2, 2009

howto: have two or more blogs in the same domain

For my inaugural how-to post, I'll explain with how I configured this "howto" subdomain. It was much simpler than I expected.

I already have a blog at http://edvoidswarranties.com/. I also have the www subdomain automatically redirecting (this is a setting in Blogger: Settings -> Publishing -> "Redirect http://www.edvoidswarranties.com/ to http://www.blogger.com/ is checked).

First, I had to configure the subdomain. My registrar is GoDaddy. In the "Total DNS Control and MX Records" section, I created a CNAME for "howto" (without the quotes) and pointed it to ghs.google.com, just like the www CNAME was already configured. My new howto alias was live in less than 5 minutes, (your mileage may vary, DNS can take a while to propagate from server to server).

Second, in Blogger, I created a new blog. I copied over most of the template HTML from my http://edvoidswarranties/ template (I copied the raw HTML), but some of it generated errors when I tried to save it, so I had to manually check each one of the gadgets. In some cases, I copied HTML text from the http://edvoidswarranties.com/ gadgets directly into the http://howto.edvoidswarranties.com/ gadgets. But basically, I created it to be the same blog "shell" as my primary blog because I wanted a consistent look and feel. I gave it a different title however, because I wanted to differentiate between my blog and this how-to collection. In Blogger's Settings -> Publishing section, I configured it to point to http://howto.edvoidswarranties.com/. I chose not to tick the "Redirect www.howto.edvoidswarranties.com to howto.edvoidswarranties.com" checkbox because I felt it was unlikely anyone would ever attempt to try that address.

That's it! In about an hour, I made a second blog feeding into my http://edvoidswarranties.com/ domain. Now I can post howto and instructional guides. I'm eager to publish this initial post so I'll skip diagrams and pictures.

filed under:

share this

Bookmark

sponsors

Ads by Google

edvoidswarranties | howto