Create systems by which people come to know about your site and want to visit it to solve a problem they have.
For example, SEO content marketing targets problems people search Google for and create content that helps solve that problem while advertising the product/service in some way. A good example of this is Digital Ocean's "how to set up software X on operating system Y" articles - good SEO, solves people's problems, and advertises directly to their customers/users.
There are other implementations, like more traditional display advertising and product reviews, but they all follow the same formula: create awareness and gives people solid reasons to come to your product/site/app.
For example, SEO content marketing targets problems people search Google for and create content that helps solve that problem while advertising the product/service in some way. A good example of this is Digital Ocean's "how to set up software X on operating system Y" articles - good SEO, solves people's problems, and advertises directly to their customers/users.
There are other implementations, like more traditional display advertising and product reviews, but they all follow the same formula: create awareness and gives people solid reasons to come to your product/site/app.