Email Marketing

Email marketing has been much maligned in years past due to the proliferation of spam by unscrupulous marketeers. There are few things more frustrating than sitting down to check your email only  to wade through countless profane and inane messages sent to you without a single thought. So does email marketing have a legitimate purpose? Sure it does! In 2006, United States firms spent $400 million on email marketing and President Barack Obama would likely be heading back to the United States Senate  if it weren’t for the shrewd use of  email marketing in his 2008 campaign.

One of the  primary roadblocks to effectively using email marketing is compliance with a federal law which can mean an $11,000 fine for each non-compliant email. Luckily this obstacle only takes a bit of common sense and an appropriate dash of technology to overcome. Compliance means conforming to the prescriptive methods of permission based email marketing set forth in the CAN-SPAM Act of 2003. A summary of the federal law can be found in the CAN-SPAM article on Wikipedia. The statute places restrictions on how email is sent, the content it contains, and prescribes methods for opting-out or unsubscribing from the email.  One of the quickest and most cost effective methods of sending out massive amounts of email without getting blacklisted is to use a reputable email marketing service like iContact or Constant Contact.  Prices for these services vary on the size of your email list and the features that you would like to use, but basically all these different services let you create custom forms for your website where your users signup to receive your emails. The user is then sent an automatic email to make sure they want to sign up, this is known as “double opt-in.” The client is then placed in your email database on the service which can be centrally administered. You then have a single place to track the performance of your email marketing campaign and see if you need to make any changes to your strategy. The dashboard shows how many people opened your email and also how many took action and clicked through to your website.

Getting back to the original premise, using an email marketing service like iContact can keep your customers, vendors, and friends aware of new products, services, or specials that your company may be offering. Studies have shown that customers that are consistently “touched” or contacted on a regular basis are more likely to make a purchase. So take advantage of their trial period and take your email marketing to the next level.

Good luck!

The img Element Vs the CSS background-image Property

Don’t know when to use the img element or when to use the CSS background-image property? Don’t fret; there is hope. Read further and all shall be revealed.

The img element is best used for pictures that are completely unrelated to the stylesheet. That is, pictures that would need to display no matter how much the look of the site changes. These would be pictures related to a news article or photos in a gallery.

The CSS background-image property is for images that make up the appearance of the stylesheet. These pictures on one stylesheet would be different or just completely absent on another stylesheet. They don’t add to the content of the page in any way and are only there to give the page its “look”. These image files would be stored in the stylesheet’s images folder. (See my last post for more on this.)

Just another tip from your uncle Kyle!

Organizing Your CSS Files

When I create a web site, I like to organize my stylesheets and images into a specific folder structure. It keeps things tidy and separates presentation files (stylesheets and images) from content files (pages and images related to the content). It also leaves room for additional stylesheet “themes” for your site.

Here is an example of this folder structure:

/styles/
/styles/default/
/styles/default/images/

Default in this example would be the name of the “theme”. The sites I develop typically do not have multiple themes for the user to pick, so I don’t usually take the time to give them fancy names. However, if your site utilizes multiple stylesheets that the user could choose from (such as at the CSS Zen Garden), creative names would be helpful.

All stylesheets for the Default theme would be placed in the /styles/default/ folder. Likewise, images used by those stylesheets would go in the /styles/default/images/ folder.

This method keeps your styles consolidated and makes it easy to use them across multiple sites. All you need to do is copy the folder to the other site; you don’t need to pick through the images folder and figure out which ones are used by the stylesheet and which ones aren’t.

Technically, you wouldn’t even need to copy anything to another site. You could just specify the full URL in the link element or @import rule on the page, but I urge you not to do this. Your visitors may be using security software that sees cross-site references as malicious, thus blocking the stylesheet from downloading or, worse, blocking the entire page.

Google AdWords Conversion Tracking

Everyone wants to stretch their AdWords budget to get the best ROI for their money, but how do you know that you are performing at your best? Google includes a tool in standard Adwords accounts called conversion tracking. Put simply, conversion tracking allows you to monitor a user’s actions on your website and links that data to your AdWords stats in terms of budget. You can setup several different types of actions, which are goals that you want your user to accomplish, such as signing up for a newsletter, clicking on a button, completing a purchase, or submitting a form. The action types are:

  • Leads
  • Signup
  • Purchase / Sale
  • View of a Key Page
  • Other

Setting up the conversion tracking is relatively straightforward. Once you create and name your action you are provided with a snippet of Javascript to place in your page. Results are tracked immediately and can be monitored at the campaign, ad group, and keyword levels. Once enough results are calculated, you will be able to see how much it costs you for a user to take an action. For example, in a week if you have 100 clicks at $2.00 / click and 15 conversions then each conversion will have cost you $13.33. Using this information can become a metric for performance. You can work on  decreasing your cost per click, increasing your Quality Score, and reducing you cost per conversion.

Good Luck!

[What is AdWords]

ASP.NET and XHTML Validation

If you’ve ever created an XHTML 1.0 Strict page containing an ASP.NET form element and ran it through the W3 Validator, you’ve undoubtedly noticed it’s reported as being invalid no matter what you do and no matter how valid the code actually appears. This is because ASP.NET adjusts the way it renders markup according to the requesting user agent. ASP.NET pities the W3 Validator and sends it bad code. This can be fixed with a “browser” file. The file and instructions on its use are available from that page.

However, that’s not all. The validator will now see your pages the way you see them in your browser, but ASP.NET is still rendering an invalid name attribute on your form element! You need to add a line to the system.web section of your web.config file:

<xhtmlConformance mode="Strict" />

Now ASP.NET plays nice with the W3 Validator and renders a valid XHTML Strict form! Now you can stop using the XHTML Transitional doctype and start using the XHTML Strict doctype on your ASP.NET pages!