Use Google. Google Adwords is the most popular method for traffic. Since they are the top search engine right now it make sense to advertise there if you can afford it. You bid on keywords to get your site at the top of the search when your keyword comes up. There is more involved but it's all laid out at Google. There are a lot of other sites that use this advertising strategy called pay per click or PPC.
Web analytics is the measurement of the behavior of visitors to a website. In a commercial context, it especially refers to the measurement of which aspects of the website work towards the business objectives of Internet marketing initiatives; for example, which landing pages encourage people to make a purchase. Notable vendors of web analytics software and services include Google Analytics, IBM Digital Analytics (formerly Coremetrics) and Adobe Omniture.