Friday, October 21, 2011

Creating QR Codes for use in Marketing

I've been seeing more and more people using Quick Response Codes (QR Codes) in a wide verity of unique ways. From creating links that take you to mobile versions of websites, to signing up for e-newsletters, additional information on plants at nurseries and even used for driving directions. The thing that drives me nuts is how little thought most people place in actually creating the QR Code itself.

Why should we spend time figuring out how to properly create a decent QR Code? Don't you just take a link, paste it in a QR Code generator and then save the pretty picture it gives you? This is kind of like hearing that "everyone needs to use Social Media", then creating an account, posting "I just ate some toast!" and then wonder why nobody is following you. QR Codes are kind of like that, they are showing up everywhere and you need to give people a reason to scan yours.

Why do they have that shape?

Hard to believe, but the modern QR Code has it's roots in traditional Bar Codes and are often referred to as 2D Bar Codes because they contain information across multiple levels.

Other than the random dots all over the place there are a couple of things to keep in mind when using QR Codes.

Color

The main reason you see black and white QR Codes is that they are mainly looking for a difference in contrast. Therefore, if you wanted to, you can actually mix in different colors and it will still work. Now, don't go too crazy as there needs to be enough of a contrast so that as broad a range of phones can scan them as possible.

You can play with the colors, but don't inverse them. Basically, the two colors are binary information for your phone when de-cyphering a QR Code and if you were to invert those colors you would, in affect, change every "yes" to a "no". Yes, this will mess with a phone. Ok, it's won't really mess with it, it will simply ignore whatever code you are trying to scan.

Orientation

One really handy thing about QR Codes is that they have a couple of "fail safes" built into them and one of those has to do with the orientation of the actual QR Code. If you look at the images, on either side, you will notice that there are three larger squares and one smaller square. On every QR Code you will see the larger squares in three corners of the code and the smaller square will actually show up multiple locations in larger Codes. The three larger squares tell your phone what the orientation of the code is, so you don't have to worry about your code being tilted or even upside down.

Adding Additional Info

One of the "fail safes" that QR Codes use is to add redundancy to the information stored within the code itself. This means that if there are any problems with the printing of the QR Code or if the phone doesn't get all of the image or whatever, people scanning your QR Code can still get to your content. The fun comes in when you intentionally add errors into your QR Code.

How many errors you can have, and still successfully scan the code, isn't an exact science (link to Wikipedia) but it is enough to allow us to have a little fun. The image on the left comes from Hack-A-Day and they have a great writeup on hacking a QR Code to your will. If you want some more examples on manipulating QR Codes check out this article on Mashable, personally I love the one for Corkbin and the other one made of M&Ms.

One thing you can't play with though are the three squares I mentioned before. You can get away with rounding corners, or changing colors, but you need to keep those three squares pretty much as is.

Images Around Your QR Code

While the three boxes, mentioned above, tell a phone what the proper orientation of your QR Code it also informs us on where the important parts are. This allows us to place images just outside of the actual QR Code and they don't interfere with scanning.

This image was used by the Red Cross in order to get donations for relief with the Japanese earthquake and tsunami. The great part is that they were able to mix the QR Code into their logo, but to also use some of the "look" of the QR Code to add the images in the other squares. In the actual QR Code itself they also manipulate the redundancy of the code and add an image of the island of Japan right in the middle.

I think the drive is over now, but what used to happen is that you would scan the code and it would take you to a website that would ask for a donation to help out. They made it really easy to do over your phone and I saw this image pop up in a lot of places.

Size Matters

The first thing to remember with QR Codes is that it's role is to store information, maybe not in a form that people can read but information none the less. Therefore, if you need to store more information in a QR Code it HAS to be larger (contain more dots) in order to convey that information. Hey, I didn't say this was rocket science!

To determine how big your final QR Code actually is, I recommend using the handy formula from QRStuff.com and they say that each dot of a QR Code should be at least 0.4mm or 0.016in across. So, if we have a QR Code containing a lot of information, it can be 60 rows tall and 60 columns wide giving us a minimum size of 0.96 inches per side but if we had a QR Code that was only 25 by 25, the minimum size would only be 0.4 inches per side. That is less than 1/5th of the surface area of the larger code!

If we have a long URL we are trying to encode, are we stuck with the larger QR Code? No! Actually using a URL shortening service (such as bit.ly and goo.gl) gives you multiple benefits such as:

  1. Smaller QR Codes (see "Rocket Science" above) giving you more space for other information.
  2. Smaller QR Code, but you don't have to make it tiny. The sizes given above make it easy for modern phones to read your codes but I really would shy away from making it is tiny as possible so you don't exclude older phones.
  3. Tracking - Most URL Shortening services will tell you how many people are using the QR Code in order to go to your website overall and a breakdown of each day (to match up with any other campaign you might have going as well).

Going Beyond the Basic QR Code


Google Analytics

One handy trick I found, when creating links that go to your website, is to do a little modifying of the URL. The thing that most people don't realize is that while modern browsers are extremely sophisticated and Google Analytics does an amazing job showing you how people are using your website, there are some quirks you can take advantage of.

  1. If there is additional information in your link, a browser will pass all of that info to the web-server and the server will promptly ignore it. This allows us to add additional information to our links that only pertain to us and has zero affect in how the actual page is displayed.
  2. Google Analytics can't tell that the extra info is irrelevant, it just assumes that it is a unique page.

What good does this do us? Try this one: Both rentmej.blogspot.com and rentmej.blogspot.com?Source=AwesomeQRCodeArticle will take you to the exact same page. The trick is that Google Analytics sees these as two unique pages and will track all of your metrics separately. So, if the goal of your campaign is to drive people to a particular webpage and you tag your links properly, you can see how each medium worked, where did they go once they got there, how long did they stay and, most importantly, how does this compare to our normal traffic.

Driving Directions

Modern Mobile OSs are getting more and more sophisticated and will often understand the link you are sending them to that is might be better to load an actual application instead of a web browser. For example, the QR Code to the side will take you to the "UW Milwaukee School of Continuing Education" located in downtown Milwaukee but most phones will open up this location in your default map application (i.e. Google Maps). The extra benefit is that you now have access to more resources than a simple web page and when you click on the location, on the map, one of the first options is to get driving directions from your current location using the internal GPS.

Who Are You?

One really fun use of QR Codes, that I stumbled upon, was the company Skanz. They create custom bracelets, phone cases and decals, with a QR Code, and the idea is that people can scan the code and they are taken to a website with information about you, photos, etc. The New York Times had a great line of "you’ve become a human hyperlink". So instead of trading business cards, or writing your number on a napkin, you just tell the other person to scan you.

Buying Groceries

File this one under "cool things you can do with QR Codes" and is really just to give you an idea of how creative you can get with them. There are subway stations in South Korea that have "virtual grocery stores". The idea is that the walls are covered with pictures of various items you can buy at a normal grocery store and each item has a QR Code. You load an app on your phone, scan in the items you want, check out and the items are delivered to your house by the end of the day.

Wrap Up

Now that you know everything there is to know about QR Codes, at least the juicy bits, go out and get a little creative with your next QR Code!

Friday, September 16, 2011

Apostrophes in Facebook Likes

When coding the html for a Like for Facebook we wanted to put an apostrophe in the text that would be displayed to go along with the Like. Unfortunately we kept on running into the issue of Facebook replacing the apostrophe with a little box with some funny characters in it.

Now this happened in all of the browsers we tested in so we figured this had to be a Facebook issue. After a couple of hours of searching I couldn't find anything and had to turn to my coworker Dan and here was his response:

There are a couple of issues:
  1. Word processors generally change any quotes to right or left quotes (if there is a non-space character before, it changes to right quote, otherwise left). The normal single quote is ASCII 39, right single quote is 146, left is 145. Codes above 127 are not defined in HTML 4.
  2. When you copy the text to Dreamweaver, it keeps the same ASCII code, but displays the normal single quote, like most browsers will eventually do unless the page uses a "Strict" doctype. A slightly more sane approach would have been to replace characters over 127 it with the corresponding HTML code, but apparently it doesn't.
  3. When you click the button to share the page with Facebook, it downloads the page, gets the text from the description meta tag, and caches it so it doesn't have to keep reloading the page. Then it displays it's page using an HTML4 strict doctype, so any browsers that actually follow the HTML standards (anything except Internet Explorer) are supposed to not "fix" things like extended ASCII characters. Instead it show the box with the ASCII code in hexadecimal.
  4. Since the description text is cached, if you make any changes (like replacing the ' with ’) and try to share again, it won't update it, it'll keep showing the same incorrect text. You can force Facebook to reload the page by using the Debugger: developers.facebook.com/tools/debug

Wednesday, September 07, 2011

Standard Mail and fun with the Post Office

In July and August of 2011 we had seen some instances where the difference in time between when Mail Services and the time we had it in hand saw mail times in excess of 2 weeks when we had been averaging about 2 or 3 business days for some time now. Because of this I did some digging and compiled the following info on the Post Office and mail delivery.

I follow Hess Printing on Twitter and they had an article that advises that it can take between 7 to 10 business days (10 Facts about Standard Mail).

I found another mailing services company that says to estimate 7 to 15 business days (Print Place). This was the longest time I found, on the web, though.

The USPS does not guarantee delivery time for Standard Mail (USPS Google Cached FAQ).

"Standard Mail" is USPS speak for "Bulk Mail" as opposed to "First Class". It goes:
  1. Express
  2. Priority Mail
  3. First-Class
  4. Parcel Post
  5. Bound Printed Matter (Media Mail)
  6. Periodicals
  7. Standard Mail (Bulk Mail)

Only Express has a guaranteed time to deliver and all of the others do not. This is primarily because the USPS is legally bound to deliver to EVERY postal address and this induces considerable variations depending on where it is mailing from and where it goes to.

This will probably be changing considerably in the future as the current Postmaster General (Patrick Donahoe) is pushing to cut 220,000 positions and almost 4,000 locations by 2015. Actually, their financial position is so tenuous that it is projected that they will be insolvent by the end of September 2011. Yes, this month.