Jul 30, 2012, by admin
Tracking cookies enable the owner of a Web site to obtain information from visitors to his or her site. The Web site’s owner can use the information to learn more about visitors and/or provide visitors with a more personalized and streamlined experience. For example, a cookie can store a Web site visitor’s user name and password so the visitor does not have to inhabit this information every time he or she visits the Web site, saving the visitor time.
1.Plan on what information you want your cookie to collect. Before you create a tracking cookie, you should determine what type of information you want to track from visitor’s to your Web site. For example, you may find it significant to know the zip code of a person visiting your Web site if your Web site sells products that need shipping costs and certain sales taxes.
2.Use HTML. If you have created your Web site using HTML code and are somewhat recognizable with programming, you can make a tracking cookie from scratch.
3.Note however that standard HTML does not have commands. “Response” and “Request” are part of Microsoft’s ASP (active server pages). See http://www.w3schools.com/asp/coll_cookies_response.asp If your web server does not support ASP, you’ll have to investigate other methods of generating cookies, such as CGI scripts or PHP.
4.Think tracking cookie software as an option to writing your own code. There are software programs out there that will do the heavy coding for you.
5.Add security to your cookie. Internet security is a key concern of most Internet users. It’s important to provide security so that visitors’ information is protected.
6.Give your cookie an expiration. A cookie will expire once the Web browser the visitor uses to view your Web site is closed. An expiration date must be set if you want to store the cookie so that when the user comes back the information is saved. An example of this code is: Response.Cookies(“CookieName”).Expires=#January 01, 2010# (assuming a January 01, 2010 expiration date).