You ask a very broad question.
Since you're asking this in the blogging section, I suppose that the primary type of traffic you're after is search engine traffic.
Just like with most other things in life, you can choose to do things the hard or the easy way.
The easier way to get search engine or organic traffic is to simply reverse-engineer your competitors.
The first step is to be clear on the niche that you are targeting.
A niche is basically the subject matter category or collection of problems that your target audience members are trying to solve.
Be clear on your sub-niche.
A lot of people fail in this game because of fuzzy niche targeting.
Be clear on the specific sub-niche or segment of a larger niche that you want to blog about.
The next step is to enter topics or keywords related to your sub-niche into the Google Keyword Planner tool.
It's going to spit out a lot of related keywords, and then manually search for these by entering them into Google's search box.
You will be able to pull up a lot of sites.
Strip their domains out.
Once you have a clean list of all the domains of sites that have pages that rank for the keywords of your target niche, the next step is to enter these domains into paid SEO tools like Ahrefs or SEMrush.
Once you've done this, you will be able to see the organic keywords those competitors rank for.
Filter these keywords based on keyword difficulty.
And then filter them again based on monthly search volume.
At the end of this process, you should have a list of keywords that your competitors are targeting.
These keywords should be easier to rank for and have a decent amount of monthly search volume.
The next step is crucial.
You need to manually enter each keyword into Google and critically analyze the results.
Put yourself in the shoes of your target audience members.
Do the results these keywords pull up to satisfy the search intent of the members of your target audience?
Do they deliver what they promised?
Filter your remaining list of keywords based on probable user experience in terms of the compatibility of the search results and probable user expectations.
Once you have that final list of keywords, the next step is to create content.
This is where it gets tricky because you have to understand that you have a moving target.
You can't just create content in a vacuum.
You have to enter those keywords into content optimization tools like Surfer SEO, Postpace, or Frase.
This way, you can pull contextual keywords that you should mention in your content.
By understanding what the contextual keywords are, you then have a good idea of how to position your content.
The next step is to produce content that is worth reading.
How would you know?
Well, first of all, does your post have all the pieces of information that are contained piecemeal or one by one on most of your competitors' pages?
Make your post the one-stop shop of queries regarding your target keyword.
Next, make sure the information that you share is up-to-date.
Make sure that your stuff is easy to read because there are pictures, graphics, diagrams, and even videos you got from YouTube.
Of course, you need to give proper attribution and give a link back to any infographics or YouTube video sources.
Finally, make sure that your stuff is easy to scan.
Don't use long paragraphs.
Don't use long, convoluted sentences.
Set it up in such a way that even a fourth grader can fully understand what you're talking about.
Once you have met these guidelines, publish your content and most importantly have a distribution list.
Please understand that Google does factor in social signals.
So it's really important to have at least a distribution list of Facebook groups, Twitter accounts, Pinterest Pinboards, and whatnot.
I'm not saying that links from social media platforms will help you, but social proof, as well as social signals, can go a long way in helping you develop an organic following around your new brand.
This organic following can then translate later to actual blog-post backlinks.
Repeat this process until you have put up 150 posts on your blog, and then move on to your next blog.