First, you do the On-page optimization it includes your content and design - should be quality content that is unique, no duplicates to your innerpages and other websites, you meta tag and title tags, no spammy keywords, make the anchor text that is a natural, also consider the load speed. After that you do the off-page optimization, build links linking to high authority sites, strategy that can increase your traffic such as having lots of shares, guest post, social media etc.