Monthly Archives: July 2011

You are browsing the site archives by month.

Improve E-Commerce SEO with Google Base

Search Engine Optimization has become synonymous with Google search. But really, optimizing for any source of organic traffic can be considered SEO. One such overlooked source is Google Products Search. This site is basically a massive directory of e-commerce products. People who search this directory are often pre-sold on products and browsing for a source to purchase them. Therefore, Google Products has the potential to organically increase your store’s online revenue.

Unfortunately, submitting your goods on Google Products Search is not as simple as submitting your website’s link. That is why I wrote the following code to get your website indexed on Google Products/Base. The data feed basically contains a list of all your products in a structured XML format. You will need to submit the data feed using the Google Merchant Center once you have modified the code to include your own products.

Here is the code for Generating Google Base Data Feed with PHP (link to XML feed). Good luck,

geoCHAT: Geo Location Based Chatting

geoCHAT: Chat Room + Geo-location (Try It)

A couple of weeks ago I wrote a post on geo-coding addresses in order to determine map coordinates: it is a useful technique for leveraging the user’s location when building a web or mobile app. I built the following geo location based chat application as a demonstration of what is possible to build. The basic idea behind the application is to allow users to visualize other members on a map in order to provide a more interactive experience.

Screenshot of geoCHAT

The application uses jQuery to abstract Google Maps’ horrendous JavaScript API implementation. AJAX and JSON are used to request new chat messages from the server every second. As a result, the application will display the incoming message on the map whenever a new message is detected.

I had a lot of fun building this, I hope you enjoy.

Adding a Glossary to Improve SEO


A page containing industry relevant keywords does wonders for Search Engine Optimization as it improves the overall keyword density. It can also help index your website in the Google Dictionary. For that reason, I needed a glossary page for one of my websites. Most web developers will simply hard code the glossary using HTML. This works fine for small lists of keywords, but a more scalable solution is needed for larger sets of glossary terms. I couldn’t find a solution on the web so I coded a simple PHP script to do just that.

The following piece of code can be used to dynamically generate an ordered list of glossary terms. The developer can add additional items to the array (or pull it from a database) instead of hard coding the HTML – that should help save time and keep things clean.

PHP Script

The original idea for this was inspired by Urban Dictionary.

Here is a demo. You are welcome to use the code however you like.