Will price increase as demand increase? I know the law of demand which states that


  if price of a product increases then the demand will decrease


In this, I think we assume that price is a function of demand. But I feel otherwise i.e. 


  if demand increases then the price of the good will increases


My reasoning:

If demand increases then the producers will capitalize on this fact and to increase their profits, will increase the price of the goods.

Where am I wrong?

Note: I have taken an introductory course on microeconomics as a minor and therefore know just the basic concepts only.
The law of demand is a microeconomic law that states, all other factors being equal, as the price of a good or service increases, consumer demand for the good or service will decrease, and vice versa.

Now, when you say that "if demand increases then the price of the good will increase"", you aren't changing the price and based on the change in demand you are now predicting that the price would rise which is clearly against the law of demand as your "increase" in demand is obviously due to more user engagement, advertising, or some other external factors.