SEO is mainly for search engine ranking so that your website will start generating traffic from search engines. SMO or social media optimization is the optimization of your site and content for social media so that people share your content on social sites and build social media traffic. Both are important for building traffic.